tool

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeSHA1

func EncodeSHA1(str string) string

EncodeSHA1 encodes string to SHA1 hex value.

func FirstNonEmptyString

func FirstNonEmptyString(strs ...string) string

FirstNonEmptyString returns the value of first string that is not empty in the list. If all strings are empty, it returns an empty result.

func IsFile

func IsFile(path string) bool

IsFile returns true if given path exists as a file (i.e. not a directory).

func NewSecretToken

func NewSecretToken() string

NewSecretToken generates and returns a random secret token based on SHA1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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