Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CUF ¶
type CUF struct {
// contains filtered or unexported fields
}
CUF stands for "Código da Unidade Federativa"
func New ¶
New validate and returns either (CUF, nil) if the given cUF is valid or (empty CUF, error).
func (CUF) MarshalJSON ¶
MarshalJSON serializes the CUF value as a JSON value
func (CUF) MarshalZerologObject ¶
MarshalZerologObject implements the zerolog marshaler so it can be logged using: log.With().EmbededObject(cuf).Msg("Some message")
func (*CUF) UnmarshalJSON ¶
UnmarshalJSON deserialize a JSON value into a CUF value
Click to show internal directories.
Click to hide internal directories.