tools

package
v0.0.0-...-6391c25 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey

func CreateKey() (string, string)

func CreateStorageDirectory

func CreateStorageDirectory()

func ReadUserInfo

func ReadUserInfo() []byte

func UserWrite

func UserWrite(data []byte)

func WalkDir

func WalkDir(dirPth, suffix string) (files []string, err error)

获取指定目录及所有子目录下的所有文件,可以匹配后缀过滤。

Types

type ExcelUser

type ExcelUser struct {
	Sex       string
	Age       string
	Allergen  string
	Heart     string
	BadHabits string
	BloddFat  string
}

func ReadExcel

func ReadExcel(filePath string) ([]ExcelUser, error)

type User

type User struct {
	UserName   string
	Num        uint32
	PrivateKey string
	PublicKey  string
}

func UserUnmarshal

func UserUnmarshal(data []byte) User

Jump to

Keyboard shortcuts

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