Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportName ¶
Only Make it Public,no turn to other camel method
func HeaderFileToGo ¶
/path/to/foo.h -> foo.go /path/to/_intptr.h -> X_intptr.go
func ToCamelCase ¶
func UpperFirst ¶
Types ¶
type NameMapper ¶
type NameMapper struct {
// contains filtered or unexported fields
}
NameMapper handles name mapping and uniqueness for Go symbols
func NewNameMapper ¶
func NewNameMapper() *NameMapper
func (*NameMapper) GetUniqueGoName ¶
func (m *NameMapper) GetUniqueGoName(name string, trimPrefixes []string, toCamel bool) (string, bool)
returns a unique Go name for an original name For every go name, it will be unique.
func (*NameMapper) SetMapping ¶
func (m *NameMapper) SetMapping(originName, newName string)
Click to show internal directories.
Click to hide internal directories.