Documentation
¶
Index ¶
- func Contains(list []interface{}, s interface{}) bool
- func GetCastToNotImplemented(castTos []interface{}, index int) bool
- func IndexOfCastTo(castTos []interface{}, name string) int
- func IsStructBased(kind string) bool
- func PrintfAll(format string, replacement interface{}) string
- func StripPackage(pkg string, s string) string
- type TemplateData
- type TypeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCastToNotImplemented ¶
func IndexOfCastTo ¶
func IsStructBased ¶
Anything that starts with a capital for it's InternalType or Type is struct based. aa.Bar" = true aa.Ping" = true aa.Bar.Pong" = true bar" = false Foo" = true
func StripPackage ¶
Types ¶
type TemplateData ¶
type TemplateData struct {
Data interface{}
Types interface{}
Casts interface{}
}
func BuildKinds ¶
func BuildKinds(kinds interface{}) []TemplateData
TODO(nickpoorman): I copied this from a previous implementation.
This is far more complicated than it needs to be. Clean up the macgyvered code and get rid of some of it.
func BuildTemplateData ¶
func BuildTemplateData(spec TypeSpec, specs []TypeSpec) TemplateData
Click to show internal directories.
Click to hide internal directories.