Documentation
¶
Overview ¶
Package gogen writes the Go source file that declares the converted icons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPrefix ¶
CheckPrefix rejects a prefix that cannot begin an exported Go identifier. A leading digit is allowed because Ident supplies the leading X.
func Ident ¶
Ident derives an exported Go identifier from an SVG file path, with prefix prepended: "arrow-left.svg" becomes "ArrowLeft". A name that would otherwise start with a digit gains an "X", since Go identifiers cannot. The prefix goes on before that patch-up, so a prefix already supplies the leading letter.
Types ¶
Click to show internal directories.
Click to hide internal directories.