test

package
v0.0.0-...-5f28de8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Key = func() *rsa.PrivateKey {
	k, err := rsa.GenerateKey(rand.Reader, 1024)
	if err != nil {
		panic(err)
	}
	return k
}()

Functions

func BoolFromString

func BoolFromString(s string) bool

func CurrencyValueFromString

func CurrencyValueFromString(s string) *types.CurrencyValue

func DecimalFromString

func DecimalFromString(s string) *decimal.Decimal

func IntFromString

func IntFromString(s string) int64

func ParseTime

func ParseTime(layout, value string) time.Time

Types

type Data

type Data struct {
	JSON string
	URL  string
	PHP  string
	M    map[string]string
}

func Sign

func Sign(m map[string]string, bools ...map[string]bool) Data

Jump to

Keyboard shortcuts

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