package
0.200.1
Repository: https://github.com/invopop/gobl.git
Documentation: pkg.go.dev

# Functions

AddIdentity makes it easier to add a new identity to a list and replace an existing value with a matching type.
IdentityForKey helps return the identity with on of the matching keys.
IdentityForType helps return the identity with a matching type code.
RequireIdentityKey provides a validation rule that will determine if at least one of the identities defined includes one with one of the defined keys.
RequireIdentityType provides a validation rule that will determine if at least one of the identities defined includes one with the defined type.

# Constants

Default or common identity keys that may be used to identify a person or company.
Default or common identity keys that may be used to identify a person or company.
Default or common identity keys that may be used to identify a person or company.
Default or common identity keys that may be used to identify a person or company.
Default or common identity keys that may be used to identify a person or company.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Presentation Unit Codes.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
No unit defined.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Measurement units.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
UnitPatternUNECE is a regular expression for UN/ECE unit codes when a unit is not covered by GOBL.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
non-standard (src: ES).
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
non-standard (src: ES).
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
non-standard (src: ES).
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
UnitUNECEMutuallyDefined is the UN/ECE code for mutually defined units.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.
Set of common units based on UN/ECE recommendation 20 and 21 extensions.

# Variables

RegexpPatternW3W is a regular expression that matches a what3words address.
UnitDefinitions describes each of the unit constants.

# Structs

Address defines a globally acceptable set of attributes that describes a postal or fiscal address.
Coordinates describes an exact geographical location in the world.
DefUnit serves to define unit keys.
DocumentRef is used to describe an existing document or a specific part of it's contents.
Email describes the electronic mailing details.
Identity is used to define a code for a specific context.
Image describes a logo or photo that represents an entity.
Inbox is used to store data about a connection with a service that is responsible for potentially receiving copies of GOBL envelopes or other document formats defined locally.
Item is used to describe a single product or service.
Name represents what a human is called.
Party represents a person or business entity.
Person represents a human, and how to contact them electronically.
Registration is used in countries that require additional information to be associated with a company usually related to a specific registration office.
Telephone describes what is expected for a telephone number.
Website describes what is expected for a web address.

# Type aliases

Unit represents either a unit key defined by GOBL *or* a two to three letter code defined by the UN/ECE.