Documentation ¶
Index ¶
- Constants
- type BaseSwift
- func (this *BaseSwift) AssembleCustomizedTypeName(t *parser.Type) string
- func (b *BaseSwift) AssembleStructName(n string) string
- func (b *BaseSwift) AssignToDict(f *parser.Field) string
- func (this *BaseSwift) FilterPropertory(n string) string
- func (this *BaseSwift) GetInnerType(t *parser.Type) string
- func (this *BaseSwift) IsBasicType(t string) bool
- func (b *BaseSwift) IsEnum(t *parser.Type) bool
- func (this *BaseSwift) ParamsJoinedByComma(args []*parser.Field) string
- func (this *BaseSwift) PlainType(t *parser.Type) string
- func (this *BaseSwift) Typecast(t *parser.Type, flag bool) string
- func (this *BaseSwift) TypecastWithDefaultValue(t *parser.Type) string
- func (this *BaseSwift) TypecastWithoutDefaultValue(t *parser.Type) string
- type SwiftGen
Constants ¶
View Source
const ( SwiftTypeInt = "Int" SwiftTypeInt64 = "Int64" SwiftTypeString = "String" SwiftTypeBool = "Bool" SwiftTypeByte = "Byte" SwiftTypeDouble = "Double" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSwift ¶
func (*BaseSwift) AssembleCustomizedTypeName ¶
func (*BaseSwift) AssembleStructName ¶
AssembleStructName returns object name of generated file name, assembled with namespace
func (*BaseSwift) FilterPropertory ¶
if the property name is the keyword of swift, rename it but encode/decode with its origin name
func (*BaseSwift) IsBasicType ¶
func (*BaseSwift) IsEnum ¶
IsEnum checks whether a type is enum. it first checks in its own definition, than check from included files
func (*BaseSwift) ParamsJoinedByComma ¶
func (*BaseSwift) TypecastWithDefaultValue ¶
Click to show internal directories.
Click to hide internal directories.