Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( MethodName = core.MethodName PackageName = core.PackageName GoTypeName = core.GoTypeName ProtocolGoTypeName = core.ProtocolGoTypeName ExportedFunctionName = core.ExportedFunctionName ExportedTypeName = core.ExportedTypeName )
Shared naming helpers (identical across the purego/cgo pipelines) live in internal/codegen/naming/core and are re-exported here so existing callers keep using naming.MethodName / naming.ExportedTypeName / … unchanged.
Functions ¶
func ClassVarName ¶
ClassVarName returns the package-level var name for a class reference. e.g. "NSString" → "_clsNSString"
func ParamName ¶
ParamName sanitises an ObjC or C parameter name for use as a Go argument name: snake_case becomes camelCase (distributor_base_address → distributorBaseAddress) and a leading upper-case word is lowered as a unit (CPUCount → cpuCount, URLString → urlString, URLs → urls) rather than one letter at a time (never cPUCount). A name that would collide with a Go keyword, builtin, or common package name gets a trailing underscore.
func SelectorVarName ¶
SelectorVarName returns a lowercase Go identifier for a selector variable that is safe to use as a package-level var name within a class file. e.g. ("NSString", "uppercaseString") → "_nsstrSelUppercaseString"
Types ¶
This section is empty.