util

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInSlice

func ContainsInSlice(slice []string, s string) bool

ConstainsInSlice find given string in given slice.

func GetErrorMessage

func GetErrorMessage(err error) string

GetErrorMessage returns the message from the error if it is a grpc error, else returns err.Error().

func RemoveFromSlice

func RemoveFromSlice(slice []string, s string) []string

RemoveFromSlice removes given string from given slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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