Documentation
¶
Index ¶
- Variables
- func ValidateLicense(license string) bool
- func ValidateLicenseByType(license string, t Type) bool
- type License
- func (l License) IsAuto() bool
- func (l License) IsMotorcycle() bool
- func (l License) IsScooter() bool
- func (l License) IsTrailer() bool
- func (l License) LicenseType() Type
- func (l License) Original() string
- func (l License) RegionCode() string
- func (l License) RegisterNumber() string
- func (l License) Series() string
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidLicense = errors.New("invalid license")
)
Functions ¶
func ValidateLicense ¶
func ValidateLicenseByType ¶
Types ¶
type License ¶
type License struct {
// contains filtered or unexported fields
}
func NewLicense ¶
func (License) IsMotorcycle ¶
func (License) LicenseType ¶
func (License) RegionCode ¶
func (License) RegisterNumber ¶
Click to show internal directories.
Click to hide internal directories.