Documentation ¶
Index ¶
- Variables
- type Config
- type Model
- func (m Model) AllItemsSlice() string
- func (m Model) Asymmetric() bool
- func (m Model) BaseKind() types.BasicKind
- func (m Model) CheckBadPrefixSuffix() error
- func (m Model) CheckBadTags() error
- func (m Model) FnMap() template.FuncMap
- func (m Model) HasJSONTags() bool
- func (m Model) HasSQLTags() bool
- func (m Model) Indexes() string
- func (m Model) InputCase() transform.Case
- func (m Model) InputJSONValues() []string
- func (m Model) InputSQLValues() []string
- func (m Model) IsFloat() bool
- func (m Model) JSONIndexes() string
- func (m Model) OutputJSONValues() []string
- func (m Model) OutputSQLValues() []string
- func (m Model) Placeholder() string
- func (m Model) SQLIndexes() string
- func (m Model) TransformedInputValues() []string
- func (m Model) TransformedOutputValues() []string
- func (m Model) ValuesJoined(from int, separator string) string
- func (m Model) ValuesWithWrapping(nTabs int) string
- func (m Model) WriteGo(w io.Writer)
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
View Source
var Prefix, Suffix string
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MainType string Plural, Pkg string MarshalTextRep enum.Representation StoreRep enum.Representation IgnoreCase bool Unsnake bool Lenient bool }
Config contains the model parameters obtained from command line options (either directly or computed).
type Model ¶
type Model struct { Config LcType, BaseType string Version string Values Values Case transform.Case TagTable string AliasTable string Extra map[string]string }
Model holds the information available during template evaluation.
func (Model) AllItemsSlice ¶
func (Model) Asymmetric ¶
func (Model) CheckBadPrefixSuffix ¶
func (Model) CheckBadTags ¶ added in v2.12.0
func (Model) HasJSONTags ¶ added in v2.12.0
func (Model) HasSQLTags ¶ added in v2.12.0
func (Model) InputJSONValues ¶ added in v2.12.0
func (Model) InputSQLValues ¶ added in v2.12.0
func (Model) JSONIndexes ¶ added in v2.12.0
func (Model) OutputJSONValues ¶ added in v2.12.0
func (Model) OutputSQLValues ¶ added in v2.12.0
func (Model) Placeholder ¶
func (Model) SQLIndexes ¶ added in v2.12.0
func (Model) TransformedInputValues ¶
func (Model) TransformedOutputValues ¶
func (Model) ValuesWithWrapping ¶
Click to show internal directories.
Click to hide internal directories.