25 Style *string
26}
27
28func ParseJsonTag(f reflect.StructField) *jsonTag {29 ret := &jsonTag{
30 Name: f.Name,
31 }
An exported function or method returning a value of an unexported type may be frustrating to use.
In Go, if the function or method starts with a lowercase letter, it is not exported outside the package.
type unexportedType string
func ExportedFunc() *unexportedType {
return &unexportedType("some string")
}
type ExportedType string
func ExportedFunc() *ExportedType {
return &ExportedType("some string")
}