util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFile

func FetchFile(url string, saveName string) error

func FloatPtr added in v0.3.2

func FloatPtr(f float64) *float64

func IntPtr added in v0.3.2

func IntPtr(i int) *int

func IsBlank added in v0.3.2

func IsBlank(s *string) *string

func KarneyGrs80

func KarneyGrs80(prevLat, prevLon, nextLat, nextLon float64) (distance float64)

KarneyGrs80 GPSの座標から距離(m)を返します。

func KarneyWgs84

func KarneyWgs84(prevLat, prevLon, nextLat, nextLon float64) (distance float64)

KarneyWgs84 GPSの座標から距離(m)を返します。

func ParseDate added in v0.3.2

func ParseDate(s *string) *datatypes.Date

func ParseEnum added in v0.3.2

func ParseEnum(s *string) *int

ParseEnum ParseInt()と同じ

func ParseFloat64 added in v0.3.2

func ParseFloat64(s *string) *float64

func ParseInt added in v0.3.2

func ParseInt(s *string) *int

func ParseTime added in v0.3.2

func ParseTime(s *string) *datatypes.Time

func Sha256

func Sha256(file string) (string, error)

func StrPtr added in v0.3.2

func StrPtr(s string) *string

func UnZip

func UnZip(src, dest string) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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