utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

*------------------------------------------------------------**

  • @filename filepath/filepath.go
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-07-31 11:40
  • @desc filepath - file path utils **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename utils/numberic.go
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-06-09 11:19
  • @desc utils - 数字转换 **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename utils/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-08-02 10:24
  • @desc utils - **------------------------------------------------------------*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfDir

func ConfDir() string

func Decrypt

func Decrypt(decrypted string, key []byte) (string, error)

func EncodeMD5

func EncodeMD5(value string) string

func Encrypt

func Encrypt(text string, key []byte) (string, error)

func Index

func Index(array []string, target string) (index int)

func MtRandInt

func MtRandInt(min, max int) int

将时间戳设置成种子数 生成随机数

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func ParseNumberTZh

func ParseNumberTZh(number int, isTraditional bool) (zhNo string)

*

  • 获取输入整数转换成汉字表示
  • @param int number 整数
  • @param boolean isTraditional 是否为繁体
  • @return string 汉字数字表示

func RootDir

func RootDir() string

*

  • 获取程序运行根目录位置

Types

This section is empty.

Directories

Path Synopsis
*------------------------------------------------------------** * @filename string/format.go * @author jinycoo * @version 1.0.0 * @date 2019-07-25 16:55 * @desc string - format **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:14 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:17 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:15 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename string/string.go * @author jinycoo * @version 1.0.0 * @date 2019-07-31 11:41 * @desc string - string **------------------------------------------------------------*
*------------------------------------------------------------** * @filename string/format.go * @author jinycoo * @version 1.0.0 * @date 2019-07-25 16:55 * @desc string - format **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:14 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:17 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename cstring/ * @author jinycoo * @version 1.0.0 * @date 2019-08-02 16:15 * @desc cstring - **------------------------------------------------------------* *------------------------------------------------------------** * @filename string/string.go * @author jinycoo * @version 1.0.0 * @date 2019-07-31 11:41 * @desc string - string **------------------------------------------------------------*
Package decimal implements an arbitrary precision fixed-point decimal.
Package decimal implements an arbitrary precision fixed-point decimal.
*------------------------------------------------------------** * @filename exit/exit.go * @author jinycoo * @version 1.0.0 * @date 2019-07-22 10:59 * @desc exit - exit **------------------------------------------------------------*
*------------------------------------------------------------** * @filename exit/exit.go * @author jinycoo * @version 1.0.0 * @date 2019-07-22 10:59 * @desc exit - exit **------------------------------------------------------------*
file
Package uuid provides implementation of Universally Unique Identifier (UUID).
Package uuid provides implementation of Universally Unique Identifier (UUID).
*------------------------------------------------------------** * @filename ip/ * @author jinycoo * @version 1.0.0 * @date 2019-09-09 17:10 * @desc ip - **------------------------------------------------------------*
*------------------------------------------------------------** * @filename ip/ * @author jinycoo * @version 1.0.0 * @date 2019-09-09 17:10 * @desc ip - **------------------------------------------------------------*

Jump to

Keyboard shortcuts

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