utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeForm

func EncodeForm(request interface{}) string

EncodeForm encodes a struct to a url.Values and returns a string with the encoded form.

func GenerateHMAC

func GenerateHMAC(value, secret string) (string, error)

GenerateHMAC generates a HMAC with sha256 algorithm and returns a string with the signature.

func SortFields

func SortFields(request interface{}) string

SortFields sorts the fields of a struct by the json tag and returns a string with the fields concatenated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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