Documentation
¶
Overview ¶
Package naming holds the spec-to-Go identifier rules shared by every emitter. All decisions about how a spec, key or enum value becomes a Go name live here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportName ¶
ExportName converts an arbitrary spec name into an exported Go identifier. Word boundaries are non-alphanumeric runs; existing capitalization inside a word is preserved ("Hash-SHA-256" -> "HashSHA256").
func StructName ¶
StructName derives a Go struct name from a spec's wire type identifier (requesttype, payloadtype or declarationtype), falling back to the spec file name. "DeviceLock" stays "DeviceLock"; "com.apple.configuration.passcode.settings" becomes "PasscodeSettings".
func WrapComment ¶
WrapComment wraps s into comment-friendly lines of at most width runes.
Types ¶
This section is empty.