utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32

func CRC32(in string) string

func GetRawType

func GetRawType(source interface{}) reflect.Type

func GetRawTypeName

func GetRawTypeName(source interface{}) string

func GetRawTypeShortName

func GetRawTypeShortName(source interface{}) string

func GetSignatureSha256

func GetSignatureSha256(in io.Reader, privateKey *rsa.PrivateKey) (string, error)

func MD5

func MD5(in string) string

func ReadFileFromDir

func ReadFileFromDir(dir string, filename string) ([]byte, error)

func RemoveFileFromDir

func RemoveFileFromDir(dir string, filename string) error

func WriteFileToDir

func WriteFileToDir(dir string, filename string, in io.Reader) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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