Documentation ¶
Index ¶
- func LittleCamelCase(txt string) string
- func ReadFile(filename string) (string, error)
- func Unescaped(txt string) interface{}
- func UpperCamelCase(txt string) string
- type Arg
- type ContainerConfig
- type ContainerGenerator
- type GeneralContainerGenerator
- type Parser
- type StructContext
- type StructInfo
- type StructParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LittleCamelCase ¶
func UpperCamelCase ¶
Types ¶
type ContainerConfig ¶
type ContainerGenerator ¶
type ContainerGenerator interface {
Generate(func(StructContext) interface{}, map[string]interface{}) (interface{}, error)
}
func NewGeneralContainerGenerator ¶
func NewGeneralContainerGenerator(containerConfig ContainerConfig) ContainerGenerator
type GeneralContainerGenerator ¶
type GeneralContainerGenerator struct {
// contains filtered or unexported fields
}
func (*GeneralContainerGenerator) Generate ¶
func (s *GeneralContainerGenerator) Generate(convert func(StructContext) interface{}, funcMap map[string]interface{}) (interface{}, error)
type StructContext ¶
type StructContext struct {
StructInfoes []StructInfo
}
func (*StructContext) Args ¶
func (m *StructContext) Args() map[string][]string
func (*StructContext) Properties ¶
func (m *StructContext) Properties() map[string][]string
type StructInfo ¶
type StructParser ¶
type StructParser struct {
// contains filtered or unexported fields
}
func (*StructParser) Parse ¶
func (s *StructParser) Parse(txt string) interface{}
Click to show internal directories.
Click to hide internal directories.