
The highest tagged major version is
v7.
package
Version:
v5.2.1
Opens a new window with list of versions in this module.
Published: Dec 17, 2019
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package static 提供了对 docs 中内容的处理方式
EmbeddedHandler 将由 Pack 打包的内容当作一个文件服务中间件
FolderHandler 将 folder 当作文件服务中间件
Pack 打包 root 目录下的内容到 path 文件
root 需要打包的目录;
pkgName 输出的包名;
varName 输出的变量名;
path 内容保存的文件名;
t 打包的文件类型,如果为 TypeNone,则只打包 addTo 的内容;
addTo 追加的打包内容;
NOTE: 隐藏文件不会被打包
Type 表示对打包文件的分类
const (
TypeNone Type = iota
TypeAll
TypeStylesheet
)
几种文件类型的定义
Source Files
¶
Click to show internal directories.
Click to hide internal directories.