Documentation ¶
Index ¶
- type CodeWriter
- func (w CodeWriter) Done(travName string) string
- func (w CodeWriter) FieldPeersFunc(travName, prefix, castTypeName, fieldName, hashType string, names []string, ...) string
- func (w CodeWriter) FieldSelector(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, ...) string
- func (w CodeWriter) FieldStartStruct(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, ...) string
- func (w CodeWriter) FieldStructFunc(travName, prefix, fieldName, nextFieldName, castTypeName, hashType string, ...) string
- func (w CodeWriter) FieldStructFuncLast(travName, prefix, fieldName, castTypeName, hashType string, isPtr bool, ...) string
- func (w CodeWriter) Hashers(travName string) string
- func (w CodeWriter) Imports(names map[string]string) string
- func (w CodeWriter) InterfaceSelector(prefix, castTypeName, fieldName, structPkgPrefix string, ...) string
- func (w CodeWriter) Package(name string) string
- func (w CodeWriter) SelectorFunc(travName, prefix, selectorName string, fields []string) string
- func (w CodeWriter) Traverse(travName, firstField string) string
- type PathGenerator
- type TraverserGenerator
- type TraverserWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeWriter ¶
type CodeWriter struct{}
func (CodeWriter) Done ¶
func (w CodeWriter) Done(travName string) string
func (CodeWriter) FieldPeersFunc ¶
func (CodeWriter) FieldSelector ¶
func (w CodeWriter) FieldSelector(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, enumValue int) string
func (CodeWriter) FieldStartStruct ¶
func (w CodeWriter) FieldStartStruct(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, enumValue int) string
func (CodeWriter) FieldStructFunc ¶
func (CodeWriter) FieldStructFuncLast ¶
func (CodeWriter) Hashers ¶
func (w CodeWriter) Hashers(travName string) string
func (CodeWriter) InterfaceSelector ¶
func (CodeWriter) Package ¶
func (w CodeWriter) Package(name string) string
func (CodeWriter) SelectorFunc ¶
func (w CodeWriter) SelectorFunc(travName, prefix, selectorName string, fields []string) string
func (CodeWriter) Traverse ¶
func (w CodeWriter) Traverse(travName, firstField string) string
type PathGenerator ¶
type PathGenerator struct { }
func NewPathGenerator ¶
func NewPathGenerator() PathGenerator
type TraverserGenerator ¶
type TraverserGenerator struct {
// contains filtered or unexported fields
}
func NewTraverserGenerator ¶
func NewTraverserGenerator(w TraverserWriter) TraverserGenerator
type TraverserWriter ¶
type TraverserWriter interface { Package(name string) string Imports(names map[string]string) string Done(travName string) string Traverse(travName, name string) string Hashers(travName string) string FieldSelector(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, enumValue int) string InterfaceSelector(prefix, castTypeName, fieldName, structPkgPrefix string, implementers map[string]string, startIdx int) string SelectorFunc(travName, prefix, selectorName string, fields []string) string FieldStartStruct(travName, prefix, fieldName, parentFieldName, castTypeName string, isPtr bool, enumValue int) string FieldStructFunc(travName, prefix, fieldName, nextFieldName, castTypeName, hashFn string, isPtr bool, slice inspector.Slice, m inspector.Map) string FieldStructFuncLast(travName, prefix, fieldName, castTypeName, hashFn string, isPtr bool, slice inspector.Slice, m inspector.Map) string FieldPeersFunc(travName, prefix, castTypeName, fieldName, hashFn string, names []string, isPtr bool, slice inspector.Slice, m inspector.Map) string }
Click to show internal directories.
Click to hide internal directories.