tc

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

TC

Professional golang Tool Collection

#Package

  1. Crypt
    加密解密工具,提供Aes, Des加密解密方式

  2. Conv
    类型转换工具,提供各种类型的校验和转化

  3. SSh ssh客户端工具,提供远程执行shell命令功能
    提供执行shell命令工具

  4. Http 提供Http访问接口以及通用的数据返回接口

  5. UUID 提供UUID生成器

  6. Retry
    重试机制

持续更新中...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJSON

func DecodeJSON(data []byte, v interface{}) error

DecodeJSON

func EncodeJSON

func EncodeJSON(v interface{}) ([]byte, error)

EncodeJSON

func Exists

func Exists(path string) bool

Exists - check whether the file or path exist

func GenUID

func GenUID() string

GenUID - returns an unique id

func InterfaceToJson

func InterfaceToJson(data interface{}) string

InterfaceToJson marshal data to json data if success return string with json format if not return empty string

func IsDir

func IsDir(path string) bool

IsDir - check whether the path is dir

func IsFile

func IsFile(path string) bool

IsFile - check whether the path is file

func JoinMap

func JoinMap(params map[string]interface{}, sep string) []byte

JoinMap

func TrimSpace

func TrimSpace(raw string) string

TrimSpace 删除头尾的空字符,空格,换行之类的东西, 具体在unicode.IsSpac.

func TrimSplit

func TrimSplit(raw, sep string) []string

TrimSplit 按sep拆分,并去掉空字符.

Types

This section is empty.

Directories

Path Synopsis
crypt
aes
des
Package ips provides ip helper functions
Package ips provides ip helper functions

Jump to

Keyboard shortcuts

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