util

package
v0.0.0-...-6d50071 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateToString

func DateToString(ts *timestamp.Timestamp) string

DateToString DateToString

func Decrypt

func Decrypt(data []byte, passphrase string) ([]byte, error)

Decrypt something

func Encrypt

func Encrypt(data []byte, passphrase string) []byte

Encrypt something

func FormatTimeStamp

func FormatTimeStamp(ts *timestamp.Timestamp, layout string) string

FormatTimeStamp FormatTimeStamp

func Now

func Now() *timestamp.Timestamp

Now creates a timestamp.Timestamp representing the current time.

func Time

func Time(ts *timestamp.Timestamp) time.Time

Time converts a protobuf *timestamp.Timestamp to a time.Time.

func Timestamp

func Timestamp(t time.Time) *timestamp.Timestamp

Timestamp converts a time.Time to a protobuf *timestamp.Timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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