helpers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// {"Path", "ID", "Time", "X", "Y", "Pressure", "Slot"}
	FigureList = [][]interface{}{
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
		{nil, nil, nil, nil, nil, nil, nil},
	}
)
View Source
var InfoLine = []interface{}{nil, nil, nil, nil, nil, nil}

Functions

func CheckAndCreateDir

func CheckAndCreateDir(basePath string) (dirPath string)

basePath是固定目录路径,不包含具体的文件名,如果你传成了 /home/xx.txt, xx.txt也会被当成目录

func IsExist

func IsExist(path string) bool

func UpdateFigureList

func UpdateFigureList(list_index int64, col_index int, newData interface{})

Types

type KeysResponse

type KeysResponse struct {
	Collection []PublicKey
}

type PlanContent

type PlanContent struct {
	ProjectName string        `yaml:"projectName" json:"projectName"`
	StartTime   time.Time     `yaml:"startTime"   json:"startTime"  `
	FinishTime  time.Time     `yaml:"finishTime"  json:"finishTime" `
	Status      string        `yaml:"status"      json:"status"     `
	PlanList    []PlanListEle `yaml:"planList"    json:"planList"   `
}

type PlanFilename

type PlanFilename struct {
	Project    string
	StartTime  time.Time
	FinishTime time.Time
	Status     string
	Suffix     string
}

type PlanListEle

type PlanListEle struct {
	Plan       string    `yaml:"plan"       json:"plan"      `
	Progress   uint8     `yaml:"progress"   json:"progress"  `
	PlanTime   time.Time `yaml:"planTime"   json:"planTime"  `
	FinishTime time.Time `yaml:"finishTime" json:"finishTime"`
}

type PublicKey

type PublicKey struct {
	Id         int    `json:"id"`
	Signal     int    `json:"signal"`
	Count      int    `json:"count"`
	Points     string `json:"points"`
	CreateTime string `json:"create_time"`
}

Jump to

Keyboard shortcuts

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