Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Proto ... Proto = Key("proto") // JSON ... JSON = Key("json") )
Variables ¶
This section is empty.
Functions ¶
func GetterToContext ¶
func GetterToContext(ctx context.Context, fieldName ByKeyGetter) context.Context
Types ¶
type ByKeyGetter ¶
type Getter ¶
type Getter interface {
GetFieldName(fieldNameByKeyGetter ByKeyGetter) string
}
func NewGetterStrategy ¶
type GetterStrategy ¶
type GetterStrategy struct {
// contains filtered or unexported fields
}
func (GetterStrategy) GetFieldName ¶
func (f GetterStrategy) GetFieldName(fieldNameByKeyGetter ByKeyGetter) string
type Key ¶
type Key string
Key ...
func (Key) GetFieldName ¶
func (f Key) GetFieldName(fieldNameByKeyGetter ByKeyGetter) string
Click to show internal directories.
Click to hide internal directories.