Documentation ¶
Index ¶
Constants ¶
View Source
const StructTagFieldName = "transform_struct"
Variables ¶
This section is empty.
Functions ¶
func EmbedStructTagToSrc ¶
Types ¶
type GenerateOption ¶
type GenerateOption struct { TransformerType TransformerType TramsformerName string DestinationPath string }
type Struct ¶
func ResolveStruct ¶
func (*Struct) LiteralTypeString ¶
func (*Struct) ReturnTypeString ¶
type StructTag ¶
func ParseStructTag ¶
type TransformerType ¶
type TransformerType string
const ( TransformerTypeFunction TransformerType = "function" TransformerTypeMethod TransformerType = "method" )
func TransformerTypeFromString ¶
func TransformerTypeFromString(s string) (TransformerType, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.