upload

package
v0.0.0-...-d22efa2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(link Link, path string)

Types

type Excmd

type Excmd struct {
	Name string `json:"name"` //执行的命令名字
	Cmd  string `json:"cmd"`  //具体的cmd
}
type Link struct {
	Version string  `json:"version"` //当前版本信息
	Name    string  `json:"name"`    //文件名字
	Url     string  `json:"url"`     //请求的url
	Excmds  []Excmd `json:"excmds"`  //执行的命令
}

type Para

type Para struct {
	Name    string `json:"name"`    //名字
	Version string `json:"version"` //版本标识符
	Links   []Link `json:"links"`   //所有版本信息
}

func GetUploadPara

func GetUploadPara(url string) (para Para, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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