util

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

Contains check if a slice contains an element.

func IsPublicIPv4

func IsPublicIPv4(ip net.IP) bool

IsPublicIPv4 function returns true when IP is public IPv4 otherwise returns false.

func WrapStr

func WrapStr(value string) *wrappers.StringValue

WrapStr function returns nil when value is empty otherwise returns value in wrappers.StringValue format.

func WrapTime

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

WrapTime function returns nil when an error occurred or time is empty otherwise returns time in timestamp.Timestamp format.

func WrapUint32

func WrapUint32(value string) *wrappers.UInt32Value

WrapUint32 function returns nil when an error occurred otherwise returns value in wrappers.UInt32Value format.

func WrapUint64

func WrapUint64(value string) *wrappers.UInt64Value

WrapUint64 function returns nil when an error occurred otherwise returns value in wrappers.UInt64Value format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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