【文件属性】:
文件名称:gojistaticbin:Goji 中间件 (https
文件大小:33KB
文件格式:ZIP
更新时间:2021-07-11 21:05:09
Go
goji-staticbin
goji-staticbin 是的中间件,它从生成的资产文件中提供静态文件。
安装
要安装库,请使用以下命令:
go get github.com/hypebeast/gojistaticbin
用法
package main
import (
"github.com/hypebeast/gojistaticbin"
"github.com/zenazn/goji"
)
func main () {
goji . Use ( gojistaticbin . Staticbin ( "static" , Asset , gojistaticbin. Options {
SkipLogging : false ,
IndexFile : "index.html" ,
}))
goj
【文件预览】:
gojistaticbin-master
----options.go(510B)
----.gitignore(33B)
----README.md(833B)
----doc.go(590B)
----LICENSE(0B)
----staticbin.go(1KB)
----example()
--------main.go(251B)
--------static()
--------Makefile(221B)