bootstrap

package
v0.0.0-...-746aa3e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const StaticFolder = "statics"

Variables

StaticFS 内置静态文件资源

Functions

func CheckUpdate

func CheckUpdate()

CheckUpdate 检查更新

func Eject

func Eject()

Eject 抽离内置静态资源

func Init

func Init(path string)

Init 初始化启动

func InitApplication

func InitApplication()

InitApplication 初始化应用常量

func InitStatic

func InitStatic()

InitStatic 初始化静态资源文件

Types

type GinFS

type GinFS struct {
	FS http.FileSystem
}

func (*GinFS) Exists

func (b *GinFS) Exists(prefix string, filepath string) bool

Exists 文件是否存在

func (*GinFS) Open

func (b *GinFS) Open(name string) (http.File, error)

Open 打开文件

type GitHubRelease

type GitHubRelease struct {
	URL  string `json:"html_url"`
	Name string `json:"name"`
	Tag  string `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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