Documentation ¶
Index ¶
- func NewValidationError(code string) error
- type Country
- func (country *Country) All() map[string]interface{}
- func (country *Country) Get(code interface{}) (interface{}, error)
- func (country *Country) GetDialingCode(code string) (interface{}, error)
- func (country *Country) GetDialingCodeFromName(name string) (interface{}, error)
- func (country *Country) GetName(code string) (interface{}, error)
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidationError ¶
NewValidationError will create a new validation error class
Types ¶
type Country ¶
type Country struct {
// contains filtered or unexported fields
}
Country struct
func NewCountry ¶
func NewCountry() *Country
NewCountry will create a new instance of country struct
func NewCountryWithExternalFile ¶
NewCountryWithExternalFile : NewCountry will create a new instance of country struct
func (*Country) GetDialingCode ¶
GetDialingCode will return a country dialing code by the country ISO 3166-1 Alpha-2 code
func (*Country) GetDialingCodeFromName ¶
GetDialingCodeFromName : GetDialingCode will return a country dialing code by the country ISO 3166-1 Alpha-2 code
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError struct
Click to show internal directories.
Click to hide internal directories.