common

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTimestamp

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

FromTimestamp converts the Timestamp into Time

func IsNil

func IsNil(p interface{}) bool

IsNil returns true if the given value is nil

func ToTimestamp

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

ToTimestamp converts the Time into Timestamp

Types

type Values

type Values []interface{}

Values contains a slice of values

func (Values) AllSet

func (v Values) AllSet() bool

AllSet returns true if all of the values are not nil

func (Values) IsEmpty

func (v Values) IsEmpty() bool

IsEmpty returns true if all of the values are nil

func (Values) Merge

func (v Values) Merge(other Values) Values

Merge merges this set of values with the given set and returns the new set

Directories

Path Synopsis
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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