goutils

package module
v0.0.0-...-cb9cbce Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 8 Imported by: 0

README

goutils

A group of generic useful utility functions

Description

Name Brief Description Remark
aes 主要是aes加解密 【CBC】

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) interface{}

func Else

func Else(v interface{}) *ifThen

func Empty

func Empty(arg interface{}) bool

Determine if the variable is null

func Export

func Export(v interface{}) string

Returns a formatted Json string

func GenerateNonce

func GenerateNonce() int

GenerateNonce -

func If

func If(c bool) *ifThen

utils.If(c).Then(v).Else(v).String()

func IsBool

func IsBool(arg interface{}) bool

func IsFloat

func IsFloat(arg interface{}) bool

Float64

func IsInt

func IsInt(arg interface{}) bool

Int

func IsInt64

func IsInt64(arg interface{}) bool

Int64

func IsSlice

func IsSlice(arg interface{}) bool

func IsString

func IsString(arg interface{}) bool

String

func IsTime

func IsTime(arg interface{}) bool

func Json

func Json(v interface{}) string

Returns a Json string

func Then

func Then(v interface{}) *ifThen

func Type

func Type(arg interface{}) string

Returns a string of variable type

func Unmarshal

func Unmarshal(s string, args ...interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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