configutil

package module
v0.0.0-...-1a806d1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(data []byte, key string) ([]byte, error)

AesDecrypt 解密

func AesEncrypt

func AesEncrypt(data []byte, key string) ([]byte, error)

AesEncrypt 加密

func Decrypt

func Decrypt(data string, key string) string

DecryptByAes Aes 解密16进制

func DecryptBase64

func DecryptBase64(data string, key string) string

DecryptByAes Aes 解密

func Encrypt

func Encrypt(data string, key string) string

EncryptByAes Aes加密 后 返回16进制

func EncryptBase64

func EncryptBase64(data string, key string) string

EncryptByAes Aes加密 后 base64 再加转字符串

func ReadBool

func ReadBool(filePath, section, key string, def bool) bool

*

  • 读取配置文件中指定块下的指定键

func ReadConfig

func ReadConfig(filePath string, section string, key string) string

*

  • 读取配置文件中指定块下的指定键

func ReadFloat64

func ReadFloat64(filePath, section, key string, def float64) float64

*

  • 读取配置文件中指定块下的指定键

func ReadInt

func ReadInt(filePath, section, key string, def int) int

*

  • 读取配置文件中指定块下的指定键

func ReadInt64

func ReadInt64(filePath, section, key string, def int64) int64

*

  • 读取配置文件中指定块下的指定键

func ReadKey

func ReadKey(filePath, section, key string, def interface{}) interface{}

读取配置值

func ReadString

func ReadString(filePath, section, key, def string) string

*

  • 读取配置文件中指定块下的指定键

Types

This section is empty.

Jump to

Keyboard shortcuts

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