Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hierarchical ¶
Hierarchical returns all codes hierarchically ordered.
Types ¶
type Definition ¶
type Definition struct {
// Code is the HSCode defined by this struct.
Code HSCode
// Section: section code.
Section string
// Description: code description.
Description string
// Terms: Description, without punctuation split at white spaces.
Terms []string
// Parent: HSCode that defines the parent of the code.
Parent HSCode
// Canonical: defines whatever the code is an header or a full code.
Canonical bool
// Count: codes in the section.
Count int
}
Definition contains code definition
type HSCode ¶
type HSCode string
HSCode: Harmonized Commodity Description and Coding System
func FindAnd ¶
FindAnd searches HSCodes with a description that matches all of the terms in argument
func HSCodesLeafs ¶
func HSCodesLeafs() (list []HSCode)
HSCodesLeafs returns sorted HSCode leafs, codes with a parent and descendents.
func HSCodesRoots ¶
func HSCodesRoots() (list []HSCode)
HSCodesRoots returns sorted HSCode roots, codes without a parent.
func (HSCode) Definition ¶
func (hs HSCode) Definition() (def Definition)
Definition returns HSCode definition. returns false if the code is not a valid HSCode.
Click to show internal directories.
Click to hide internal directories.