lib

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []interface{}, s interface{}) bool

func GetCastToNotImplemented

func GetCastToNotImplemented(castTos []interface{}, index int) bool

func IndexOfCastTo

func IndexOfCastTo(castTos []interface{}, name string) int

func IsStructBased

func IsStructBased(kind string) bool

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 PrintfAll

func PrintfAll(format string, replacement interface{}) string

func StripPackage

func StripPackage(pkg string, s string) string

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

type TypeSpec

type TypeSpec struct {
	// contains filtered or unexported fields
}

func LoadTypes

func LoadTypes(types interface{}) []TypeSpec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL