Versions in this module Expand all Collapse all v1 v1.1.2 Oct 13, 2018 Changes in this version + type USPS20 struct + func NewUSPS20(p *Package) *USPS20 + func (u *USPS20) GetCarrierName() string + func (u *USPS20) GetPackage() *Package + func (u *USPS20) Match() bool + func (u *USPS20) Validate() bool + type USPSIMpb struct + func NewUSPSIMpb(p *Package) *USPSIMpb + func (u *USPSIMpb) GetCarrierName() string + func (u *USPSIMpb) GetPackage() *Package + func (u *USPSIMpb) Match() bool + func (u *USPSIMpb) Validate() bool + type USPSS10 struct + func NewUSPSS10(p *Package) *USPSS10 + func (u *USPSS10) GetCarrierName() string + func (u *USPSS10) GetPackage() *Package + func (u *USPSS10) Match() bool + func (u *USPSS10) Validate() bool v1.0.1 Sep 8, 2018 Changes in this version + func Reverse(s string) string v1.0.0 Sep 8, 2018 Changes in this version + type CarrierFactory interface + GetCarrierName func() string + GetPackage func() *Package + Match func() bool + Validate func() bool + type FedExExpress struct + func NewFedExExpress(p *Package) *FedExExpress + func (f *FedExExpress) GetCarrierName() string + func (f *FedExExpress) GetPackage() *Package + func (f *FedExExpress) Match() bool + func (f *FedExExpress) Validate() bool + type FedExGround96 struct + func NewFedExGround96(p *Package) *FedExGround96 + func (f *FedExGround96) GetCarrierName() string + func (f *FedExGround96) GetPackage() *Package + func (f *FedExGround96) Match() bool + func (f *FedExGround96) Validate() bool + type Package struct + Carrier string + IsValid bool + TrackingNumber string + func Identify(trackingNumber string) (*Package, error) + func NewPackage(trackingNumber string) (*Package, error) + type UPS struct + func NewUPS(p *Package) *UPS + func (u *UPS) GetCarrierName() string + func (u *UPS) GetPackage() *Package + func (u *UPS) Match() bool + func (u *UPS) Validate() bool