Add documentation about codegen

This commit is contained in:
Aaron Boodman
2015-06-02 23:41:26 -07:00
parent 228186dfee
commit f973bb6536
11 changed files with 56 additions and 0 deletions

View File

@@ -36,6 +36,14 @@ func (nw *nomWriter) Write(w io.Writer, typ typewriter.Type) error {
if err != nil {
return err
}
w.Write([]byte(`
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
`))
if err := tmpl.Execute(w, typ); err != nil {
return err
}

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Bool) Equals(other Value) bool {
if other, ok := other.(Bool); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Float32) Equals(other Value) bool {
if other, ok := other.(Float32); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Float64) Equals(other Value) bool {
if other, ok := other.(Float64); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Int16) Equals(other Value) bool {
if other, ok := other.(Int16); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Int32) Equals(other Value) bool {
if other, ok := other.(Int32); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self Int64) Equals(other Value) bool {
if other, ok := other.(Int64); ok {
return self == other

View File

@@ -1,5 +1,8 @@
package types
// The methods for these types are generated by a tool.
// See http://clipperhouse.github.io/gen.
// +gen noms
type Bool bool

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self UInt16) Equals(other Value) bool {
if other, ok := other.(UInt16); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self UInt32) Equals(other Value) bool {
if other, ok := other.(UInt32); ok {
return self == other

View File

@@ -4,6 +4,11 @@
package types
// DO NOT EDIT
//
// This file was generated by a tool.
// See http://clipperhouse.github.io/gen for details.
func (self UInt64) Equals(other Value) bool {
if other, ok := other.(UInt64); ok {
return self == other