utils

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToBoolean

func ParseToBoolean(val string, s string) bool

func ParseToModel

func ParseToModel(slice []RawRates, effective_at, endAt, sim_type string) ([]db.BaseRate, error)

func ParseToRates

func ParseToRates(str string, s string) (float64, error)

func ParsedToInt

func ParsedToInt(s string) (int64, error)

Types

type RawRates

type RawRates struct {
	Country string `csv:"Country"`
	Network string `csv:"Network"`
	Vpmn    string `csv:"VPMN"`
	Imsi    string `csv:"IMSI"`
	Sms_mo  string `csv:"SMS MO"`
	Sms_mt  string `csv:"SMS MT"`
	Data    string `csv:"Data"`
	X2g     string `csv:"2G"`
	X3g     string `csv:"3G"`
	X5g     string `csv:"5G"`
	Lte     string `csv:"LTE"`
	Lte_m   string `csv:"LTE-M"`
	Apn     string `csv:"APN"`
}

func FetchData

func FetchData(url string) ([]RawRates, error)

Jump to

Keyboard shortcuts

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