util

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsSha256

func AsSha256(o interface{}) (string, error)

func IndexOfString added in v0.2.0

func IndexOfString(needle string, haystack []string) int

IndexOfString returns the index of the needle in the haystack

func Sha256Equal

func Sha256Equal(a, b interface{}) (bool, error)

func Sha256Sum

func Sha256Sum(b []byte) string

func SliceContainsString

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

SliceContainsString returns true when s is found in the slice

func SliceRemoveString

func SliceRemoveString(slice []string, s string) (result []string)

SliceRemoveString removes s from the slice and returns a new slice without s

Types

This section is empty.

Jump to

Keyboard shortcuts

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