Skip to content

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fank committed Aug 14, 2024
1 parent 9b27563 commit 80692d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions bmecat.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "encoding/xml"

const (
XMLNS string = "http://www.bmecat.org/bmecat/2005/bmecat_new_catalog"
XMLNSXSI = "http://www.w3.org/2001/XMLSchema-instance"
XSI = "http://www.bmecat.org/bmecat/2005 bmecat_2005.xsd"
XMLNSXSI string = "http://www.w3.org/2001/XMLSchema-instance"
XSI string = "http://www.bmecat.org/bmecat/2005 bmecat_2005.xsd"
)

type BMEcat2005 struct {
Expand Down
6 changes: 3 additions & 3 deletions catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type LevelNames struct {
type LevelName struct {
XMLName xml.Name `xml:"CLASSIFICATION_SYSTEM_LEVEL_NAME"`
Name string `xml:"CLASSIFICATION_SYSTEM_LEVEL_NAME"`
LevelID string `xml:"attr,level"`
LevelID string `xml:"level,attr"`
}

type SystemType struct {
Expand Down Expand Up @@ -120,7 +120,7 @@ type Formulas struct {
type FormulaFunction struct {
XMLName xml.Name `xml:"FORMULA_FUNCTION"`
Term []Term `xml:"TERM"`
Type string `xml:"attr,type"`
Type string `xml:"type,attr"`
}

type Term struct {
Expand Down Expand Up @@ -593,7 +593,7 @@ type ConfigParts struct {
type Alternative struct {
SupplierPID string `xml:"SUPPLIER_PIDREF"`
SupplierIDRef TypeID `xml:"SUPPLIER_IDREF"`
ProductOrderDetails ProductOrderDetails `xml:"PRODUCT_ORDER"`
ProductOrderDetails ProductOrderDetails `xml:"PRODUCT_ORDER_DETAILS"`
DefaultFlag bool `xml:"DEFAULT_FLAG"`
ConfigCode int `xml:"CONFIG_CODE"`
ProductPriceDetails ProductPriceDetails `xml:"PRODUCT_PRICE_DETAILS"`
Expand Down
24 changes: 12 additions & 12 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ type ContactID string

const (
PartyTypeBuyerSpecific string = "buyer_specific"
PartyTypeCustomerSpecific = "customer_specific"
PartyTypeDUNS = "duns"
PartyTypeILN = "iln"
PartyTypeGLN = "gln"
PartyTypeSupplierSpecific = "supplier_specific"
PartyTypeCustomerSpecific string = "customer_specific"
PartyTypeDUNS string = "duns"
PartyTypeILN string = "iln"
PartyTypeGLN string = "gln"
PartyTypeSupplierSpecific string = "supplier_specific"
)

type PartyID struct {
Expand Down Expand Up @@ -89,15 +89,15 @@ type PhoneType string

const (
PhoneMobile PhoneType = "mobile"
PhoneOffice = "office"
PhonePrivate = "private"
PhoneOffice PhoneType = "office"
PhonePrivate PhoneType = "private"
)

type FaxType string

const (
FaxOffice FaxType = "office"
FaxPrivate = "private"
FaxPrivate FaxType = "private"
)

type ContactName struct {
Expand Down Expand Up @@ -150,10 +150,10 @@ type PIDType string

const (
PIDBuyerSpecific PIDType = "buyer_specific"
PIDEAN = "ean"
PIDGTIN = "gtin"
PIDSupplierSpecific = "supplier_specific"
PIDUPC = "upc"
PIDEAN PIDType = "ean"
PIDGTIN PIDType = "gtin"
PIDSupplierSpecific PIDType = "supplier_specific"
PIDUPC PIDType = "upc"
)

type SupplierPID struct {
Expand Down

0 comments on commit 80692d9

Please sign in to comment.