Documentation
¶
Index ¶
Constants ¶
View Source
const ( OLC_SEPARATOR = '+' OLC_PADDING = '0' IAC_SEPARATOR = '9' IAC_PADDING = 'A' )
View Source
const (
EARTH_RADIUS_IN_METERS = 6371000
)
Variables ¶
View Source
var ( OLC_ALPHABET = []rune{'2', '3', '4', '5', '6', '7', '8', '9', 'C', 'F', 'G', 'H', 'J', 'M', 'P', 'Q', 'R', 'V', 'W', 'X'} IAC_ALPHABET = []rune{'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'X', 'W', 'Y', 'Z'} OLC_TO_IAC_MAP = make(map[rune]rune, 22) IAC_TO_OLC_MAP = make(map[rune]rune, 22) )
View Source
var (
ErrInvalidCharInput = errors.New("invalid character in input")
)
Functions ¶
Types ¶
type ErrDecodeFailed ¶
type ErrDecodeFailed struct {
Inner error
}
func NewErrDecodeFailed ¶
func NewErrDecodeFailed(cause error) *ErrDecodeFailed
func (ErrDecodeFailed) Cause ¶
func (e ErrDecodeFailed) Cause() error
func (ErrDecodeFailed) Error ¶
func (e ErrDecodeFailed) Error() string
Click to show internal directories.
Click to hide internal directories.