library

package module
v0.0.0-...-714bc2e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 5 Imported by: 0

README

library

Documentation

Index

Constants

View Source
const RFC3339Z = "2006-01-02 15:04:05.000"

RFC3339Z .

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString converts byte slice to string.

func Now

func Now() time.Time

Now .

func NowString

func NowString() string

NowString .

func NowTimestamp

func NowTimestamp() int64

NowTimestamp .

func Shutdown

func Shutdown() chan os.Signal

Shutdown returns all the singals that are being watched for to shut down services.

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice.

func TimeFormat

func TimeFormat(t time.Time) string

TimeFormat .

Types

type TimeString

type TimeString string

TimeString .

func (TimeString) Time

func (ts TimeString) Time() time.Time

Time .

func (TimeString) Timestamp

func (ts TimeString) Timestamp() int64

Timestamp .

type TimeTimestamp

type TimeTimestamp int64

TimeTimestamp .

func (TimeTimestamp) Time

func (tt TimeTimestamp) Time() time.Time

Time .

func (TimeTimestamp) TimeString

func (tt TimeTimestamp) TimeString() string

TimeString .

Jump to

Keyboard shortcuts

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