Documentation ¶
Index ¶
- type GeneratorMakerFunc
- type IDGenerator
- type IDGenerators
- func (gen *IDGenerators) Add(v interface{}, maker GeneratorMakerFunc)
- func (gen *IDGenerators) AddAll(values []interface{}, maker GeneratorMakerFunc)
- func (gen IDGenerators) Generate(typeName string) string
- func (gen IDGenerators) GenerateByType(v interface{}) string
- func (gen IDGenerators) GenerateInt64(typeName string) int64
- func (gen IDGenerators) GenerateInt64ByType(v interface{}) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneratorMakerFunc ¶
type GeneratorMakerFunc func(typeString string) IDGenerator
type IDGenerator ¶
type IDGenerators ¶
type IDGenerators struct {
// contains filtered or unexported fields
}
func New ¶
func New(maker GeneratorMakerFunc, values ...interface{}) IDGenerators
func (*IDGenerators) Add ¶
func (gen *IDGenerators) Add(v interface{}, maker GeneratorMakerFunc)
func (*IDGenerators) AddAll ¶
func (gen *IDGenerators) AddAll(values []interface{}, maker GeneratorMakerFunc)
func (IDGenerators) Generate ¶
func (gen IDGenerators) Generate(typeName string) string
func (IDGenerators) GenerateByType ¶
func (gen IDGenerators) GenerateByType(v interface{}) string
func (IDGenerators) GenerateInt64 ¶
func (gen IDGenerators) GenerateInt64(typeName string) int64
func (IDGenerators) GenerateInt64ByType ¶
func (gen IDGenerators) GenerateInt64ByType(v interface{}) int64
Click to show internal directories.
Click to hide internal directories.