utilities

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 8 Imported by: 6 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DEFAULT_DATE = "2006-01-02"

Variables

This section is empty.

Functions

func DecodeResults

func DecodeResults[T any](decoder *json.Decoder) (T, error)

func JsonDecoderToBooleanSlice

func JsonDecoderToBooleanSlice(dec *json.Decoder) ([]bool, error)

func JsonDecoderToIntSlice

func JsonDecoderToIntSlice(dec *json.Decoder) ([]int, error)

func JsonDecoderToString

func JsonDecoderToString(dec *json.Decoder) (string, error)

func JsonDecoderToStringSlice

func JsonDecoderToStringSlice(dec *json.Decoder) ([]string, error)

func NullableTimeToStringMap

func NullableTimeToStringMap(dict map[string]*time.Time, format string) map[string]*string

NullableTimeToStringMap is used to make a nullable string map from a time.Time map.

func PrepareQueryParams

func PrepareQueryParams(queryParams url.Values, data map[string]interface{}) url.Values

func TimeToStringMap

func TimeToStringMap(dict map[string]time.Time, format string) map[string]string

TimeToStringMap is used to make a string map from a time.Time map.

func TimeToStringSlice

func TimeToStringSlice(slice []time.Time, format string) []string

TimeToStringSlice is used to make a string slice from a time.Time slice.

func ToNullableTimeMap

func ToNullableTimeMap(dict interface{}, format string) (map[string]*time.Time, error)

ToNullableTimeMap is used to make a nullable time.Time map from a string map.

func ToTimeMap

func ToTimeMap(dict interface{}, format string) (map[string]time.Time, error)

ToTimeMap is used to make a time.Time map from a string map.

func ToTimeSlice

func ToTimeSlice(slice interface{}, format string) ([]time.Time, error)

ToTimeSlice is used to make a time.Time slice from a string slice.

func UpdateUserAgent

func UpdateUserAgent(userAgent string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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