Documentation ¶
Overview ¶
Package godler provides ...
Index ¶
- Constants
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func DirExists(dirpath string) bool
- func DirSize(path string) (int64, error)
- func FileExists(filepath string) bool
- func GetFileInfoTimes(f os.FileInfo) (ctime, mtime time.Time)
- func GetFileSize(path string) (int64, error)
- func GetFileTimes(path string) (ctime, mtime time.Time, err error)
- func Md5(str string) string
- func Md5File(path string) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func ReadFileToInterface(path string, i interface{}) error
- func ReadFileToMap(path string) (map[string]interface{}, error)
- func ToMap(i interface{}) (map[string]interface{}, error)
- func ToMapString(i interface{}) (string, error)
- func WriteInterfaceToFile(path string, data interface{}) error
- func WriteMapToFile(path string, data map[string]interface{}) error
Constants ¶
View Source
const ( PermFile fs.FileMode = 0666 PermDir = 0755 )
Variables ¶
This section is empty.
Functions ¶
func GetFileSize ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ReadFileToInterface ¶
func ReadFileToMap ¶
func ToMapString ¶
func WriteInterfaceToFile ¶
func WriteMapToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.