Versions in this module Expand all Collapse all v0 v0.5.0 Jun 21, 2024 Changes in this version + var AutoGeneratedMark = "// Code generated by DarwinKit. DO NOT EDIT.\n" + func Create(filename string) (*os.File, error) + type AliasInfo struct + Description string + DocURL string + Values []*EnumValue + func (e *AliasInfo) IsString() bool + type Class struct + Description string + DocURL string + InstanceTypeMethods []*Method + Methods []*Method + Properties []*Property + Super *Class + Type *typing.ClassType + func (c *Class) Copy() CodeGen + func (c *Class) GoImports() set.Set[string] + func (c *Class) Init() + func (c *Class) String() string + func (c *Class) WriteGoCode(cw *CodeWriter) + type CodeGen interface + Copy func() CodeGen + GoImports func() set.Set[string] + Init func() + WriteGoCode func(cw *CodeWriter) + type CodeWriter struct + IndentStr string + Writer io.Writer + func (c *CodeWriter) Indent() + func (c *CodeWriter) UnIndent() + func (c *CodeWriter) WriteLine(line string) + func (c *CodeWriter) WriteLineF(format string, values ...any) + func (c *CodeWriter) WriteLines(lines []string) + type EnumValue struct + Arm64Value string + GoName string + Module *modules.Module + Name string + Value string + type FileWriter struct + Module modules.Module + Name string + PlatformDir string + func (w *FileWriter) Add(types ...CodeGen) + func (w *FileWriter) WriteCode() + type Method struct + ClassMethod bool + Deprecated bool + Description string + DocURL string + GoName string + InitMethod bool + Name string + Params []*Param + Protocol bool + Required bool + ReturnType typing.Type + Suffix bool + Variadic bool + WeakProperty bool + func (m *Method) GoFuncDeclare(currentModule *modules.Module, goTypeName string) string + func (m *Method) GoFuncName() string + func (m *Method) GoImports() set.Set[string] + func (m *Method) HasProtocolParam() bool + func (m *Method) NormalizeInstanceTypeMethod(returnType *typing.ClassType) *Method + func (m *Method) ProtocolGoFuncFieldType(currentModule *modules.Module) string + func (m *Method) ProtocolGoFuncName() string + func (m *Method) Selector() string + func (m *Method) String() string + func (m *Method) ToProtocolParamAsObjectMethod() *Method + func (m *Method) WriteGoCallCode(currentModule *modules.Module, typeName string, cw *CodeWriter) + func (m *Method) WriteGoInterfaceCode(currentModule *modules.Module, classType *typing.ClassType, w *CodeWriter) + type ModuleWriter struct + Description string + DocURL string + EnumAliases []*AliasInfo + FuncAliases []*AliasInfo + Module modules.Module + PlatformDir string + Protocols []*typing.ProtocolType + func (m *ModuleWriter) WriteCode() + func (m *ModuleWriter) WriteDocFile() + func (m *ModuleWriter) WriteEnumAliases() + func (m *ModuleWriter) WriteProtocolsImportCode() + func (m *ModuleWriter) WriteTypeAliases() + type Param struct + FieldName string + IsPtrPtr bool + Name string + Object bool + Type typing.Type + func (p *Param) GoDeclare(currentModule *modules.Module, receiveFromObjc bool) string + func (p *Param) GoName() (name string) + func (p *Param) ObjcDeclare() string + func (p *Param) String() string + type Property struct + ClassProperty bool + Deprecated bool + Description string + DocURL string + GetterName string + GoName string + Name string + ReadOnly bool + Required bool + SetterName string + Type typing.Type + Weak bool + func (p *Property) String() string + type Protocol struct + Description string + DocURL string + Methods []*Method + Properties []*Property + SkipDelegate bool + SkipInterface bool + SkipWrapper bool + Supers []*Protocol + Type *typing.ProtocolType + func (p *Protocol) Copy() CodeGen + func (p *Protocol) GoImports() set.Set[string] + func (p *Protocol) Init() + func (p *Protocol) String() string + func (p *Protocol) WriteGoCode(w *CodeWriter)