Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConformService ¶
type ConformService struct {
// contains filtered or unexported fields
}
func NewConformService ¶
func NewConformService() *ConformService
func (*ConformService) Conform ¶
func (s *ConformService) Conform(v interface{}) error
func (*ConformService) GetTransformer ¶
func (s *ConformService) GetTransformer(name string) StringTransformer
func (*ConformService) MustConform ¶
func (s *ConformService) MustConform(v interface{})
func (*ConformService) RegisterStringTransformer ¶
func (s *ConformService) RegisterStringTransformer(name string, transformer StringTransformer)
type Conformer ¶
type Conformer interface {
ConformSelf(*ConformService)
}
If a type implements this interface, the callback function gets called while conforming
type StringTransformer ¶
Click to show internal directories.
Click to hide internal directories.