Documentation ¶
Index ¶
Constants ¶
View Source
const Zero = NSU("000000000000000")
Zero is a zero valued NSU.
Variables ¶
View Source
var ( // ErrCannotParse is returned when a NSU cannot be parsed from a string ErrCannotParse = errors.New("failed to parse nsu from string") )
Functions ¶
Types ¶
type NSU ¶
type NSU string
NSU is "Número Sequencial Único" and it's an offset used by sefaz to manage the NFes
func MustParseUint64 ¶
MustParseUint64 parses an integer into an NSU
func ParseUint64 ¶
ParseUint64 parses an integer into an NSU
func (NSU) MarshalJSON ¶
MarshalJSON serializes the NSU value as a JSON value
func (NSU) MarshalZerologObject ¶
MarshalZerologObject implements the zerolog marshaler so it can be logged using: log.With().EmbededObject(nsu).Msg("Some message")
func (*NSU) UnmarshalJSON ¶
UnmarshalJSON deserializes a JSON value into a NSU value
Click to show internal directories.
Click to hide internal directories.