aprsutils

package module
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

aprsutils

APRS lib for Go

Documentation

Index

Constants

View Source
const Name = "aprsutils"
View Source
const Version = "1.2.3"

Variables

This section is empty.

Functions

func CalculateDistanceHaversine

func CalculateDistanceHaversine(lat1, lon1, lat2, lon2 float64) float64

CalculateDistanceHaversine computes the distance between two coordinates using Haversine formula

func CalculateDistanceVincentyInverse

func CalculateDistanceVincentyInverse(lat1, lon1, lat2, lon2 float64) float64

CalculateDistanceVincentyInverse computes the distance between two coordinates using Vincenty Inverse formula

func FromDecimal

func FromDecimal(number int, width ...int) (string, error)

FromDecimal transfer decimal to Base91

func Passcode

func Passcode(callsign string) int

Passcode calculates passcode of the callsign

func ToDecimal

func ToDecimal(text string) (int, error)

ToDecimal transfers Base91 to decimal

func ValidateCallsign

func ValidateCallsign(callsign string) bool

ValidateCallsign checks whether a callsign is valid

Types

type Logger

type Logger interface {
	Debug(context.Context, ...interface{})
	Info(context.Context, ...interface{})
	Warn(context.Context, ...interface{})
	Error(context.Context, ...interface{})
}

Logger construct a basic interface for logger

func NewLogger

func NewLogger() Logger

NewLogger creates a new logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL