strings

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const SIGNATURE_NAME = "signature"

Variables

This section is empty.

Functions

func GetSigMessage

func GetSigMessage(signMes interface{}) (string, error)

GetSigMessage gets a messages used to generate signature param: signMes is struct or map return: the key-value set concatenated with '&' example:

ifce := FLTask{
	TaskID: "26e02df4-b0ea-492e-84aa-6f1a4f547c9b",
	Name: "house-predict",
}

return "name=house_preidct&taskID=26e02df4-b0ea-492e-84aa-6f1a4f547c9b"

func IsContain

func IsContain(items []string, item string) bool

IsContain checks if item exists in a list

func IsContainDuplicateItems

func IsContainDuplicateItems(items []string) bool

IsContainDuplicateItems checks if duplicate items exist in a list

Types

This section is empty.

Jump to

Keyboard shortcuts

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