utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileURL string

Functions

func GetFiles

func GetFiles(dir string) ([]list.Item, error)

func InitConfig

func InitConfig() error

func UploadFile

func UploadFile(filePath string) error

Types

type Upyun

type Upyun struct {
	Operator  string `json:"operator"`
	Secret    string `json:"secret"`
	Bucket    string `json:"bucket"`
	Bucketurl string `json:"bucketurl"`
}
var (
	Conf Upyun
)

func GetConf

func GetConf() (Upyun, error)

Jump to

Keyboard shortcuts

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