Documentation
¶
Overview ¶
Package common the js common
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldNameMapper ¶
type FieldNameMapper struct{}
FieldNameMapper provides custom mapping between Go and JavaScript property names.
func (FieldNameMapper) FieldName ¶
func (FieldNameMapper) FieldName(_ reflect.Type, f reflect.StructField) string
FieldName returns a JavaScript name for the given struct field in the given type. If this method returns "" the field becomes hidden.
func (FieldNameMapper) MethodName ¶
MethodName returns a JavaScript name for the given method in the given type. If this method returns "" the method becomes hidden.
Click to show internal directories.
Click to hide internal directories.