utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinStrings

func JoinStrings(sep string, elems ...string) string

JoinStrings works as strings.Join, but can receive arbitrary number of strings The separator string sep is placed between elements in the resulting string.

func RedactedDSN

func RedactedDSN(dsn string) string

func ReverseStringSlice

func ReverseStringSlice(numbers []string) []string

func UnixTimeToUTC

func UnixTimeToUTC(unixTime int) time.Time

UnixTimeToUTC convert unix time to UTC time.Time If unixTime equal zero return time.Now().UTC

func UnixTimeToUTZ

func UnixTimeToUTZ(unixTime int) time.Time

UnixTimeToUTZ convert unix time to local time.Time If unixTime equal zero return time.Now()

Types

This section is empty.

Jump to

Keyboard shortcuts

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