Documentation ¶
Index ¶
- Constants
- Variables
- func FileName(fname, suffix string) string
- func GoGenerator(cfg *eg.Config, schema eg.PropertyObject, writer io.Writer)
- func TestFileName(t *testing.T)
- func TestFormatLine(t *testing.T)
- func TestGoGenerator(t *testing.T)
- func TestKeyWordFilter(t *testing.T)
- func TestPrivateName(t *testing.T)
- func TestPublicName(t *testing.T)
- func TestSimpleTypeBuilder(t *testing.T)
- func TestSimpleTypeClazz(t *testing.T)
- func TestSimpleTypeImpl(t *testing.T)
- func TestSimpleTypeImplAsMap(t *testing.T)
- func TestSimpleTypeImplClone(t *testing.T)
- func TestSimpleTypeImplHash(t *testing.T)
- func TestSimpleTypeImplLess(t *testing.T)
- func TestSimpleTypeParam(t *testing.T)
- func TestWriteBlock(t *testing.T)
- func TestWriterWriteLine(t *testing.T)
- func TestWriterWriteLineEmpty(t *testing.T)
- type ForIfWhileLang
- func (x *ForIfWhileLang) AsType(p eg.Property) string
- func (x *ForIfWhileLang) AsTypeOptional(p eg.PropertyItem, opts ...string) string
- func (x *ForIfWhileLang) AsTypePtr(p eg.Property) string
- func (x *ForIfWhileLang) KeyWordFilter(prefix, name string) string
- func (x *ForIfWhileLang) Optional(optional bool, typeStr string, opts ...string) string
- func (x *ForIfWhileLang) PrivateName(name string, add ...string) string
- func (x *ForIfWhileLang) Ptr(p eg.Property, typeStr string) string
- func (x *ForIfWhileLang) PublicName(name string, add ...string) string
- type ObjectType
- type SimpleType
- type SimpleTypeObject
Constants ¶
View Source
const RUSTY = "github.com/mabels/wueste/entity-generator/src/rusty"
View Source
const WUESTE = "github.com/mabels/wueste/entity-generator/src/wueste"
Variables ¶
View Source
var KeyWords = map[string]bool{ "break": true, "default": true, "func": true, "interface": true, "select": true, "case": true, "defer": true, "go": true, "map": true, "struct": true, "chan": true, "else": true, "goto": true, "package": true, "switch": true, "const": true, "fallthrough": true, "if": true, "range": true, "type": true, "continue": true, "for": true, "import": true, "return": true, "var": true, "error": true, "string": true, "bool": true, "uint8": true, "uint16": true, "uint32": true, "uint64": true, "int8": true, "int16": true, "int32": true, "int64": true, "float32": true, "float64": true, "complex64": true, "complex128": true, "byte": true, "rune": true, }
Functions ¶
func GoGenerator ¶
func TestFileName ¶
func TestFormatLine ¶
func TestGoGenerator ¶
func TestKeyWordFilter ¶
func TestPrivateName ¶
func TestPublicName ¶
func TestSimpleTypeBuilder ¶
func TestSimpleTypeClazz ¶
func TestSimpleTypeImpl ¶
func TestSimpleTypeImplAsMap ¶
func TestSimpleTypeImplClone ¶
func TestSimpleTypeImplHash ¶
func TestSimpleTypeImplLess ¶
func TestSimpleTypeParam ¶
func TestWriteBlock ¶
func TestWriterWriteLine ¶
Types ¶
type ForIfWhileLang ¶
func (*ForIfWhileLang) AsTypeOptional ¶
func (x *ForIfWhileLang) AsTypeOptional(p eg.PropertyItem, opts ...string) string
func (*ForIfWhileLang) KeyWordFilter ¶
func (x *ForIfWhileLang) KeyWordFilter(prefix, name string) string
func (*ForIfWhileLang) Optional ¶
func (x *ForIfWhileLang) Optional(optional bool, typeStr string, opts ...string) string
func (*ForIfWhileLang) PrivateName ¶
func (x *ForIfWhileLang) PrivateName(name string, add ...string) string
func (*ForIfWhileLang) PublicName ¶
func (x *ForIfWhileLang) PublicName(name string, add ...string) string
type ObjectType ¶
type SimpleType ¶
type SimpleTypeObject ¶
type SimpleTypeObject interface { String() string OptionalString() rusty.Optional[string] Float64() float64 OptionalFloat64() rusty.Optional[float64] Int64() int64 OptionalInt64() rusty.Optional[int64] Uint64() uint64 OptionalUint64() rusty.Optional[uint64] Bool() bool OptionalBool() rusty.Optional[bool] }
Click to show internal directories.
Click to hide internal directories.