package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jun 14, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Documentation
¶
Bytes 将 v 打包成一份合法的 Go []byte 类型
func File(v interface{}, pkgName, varName, fileHeader, tag, path string) error
File 将对象 v 打包成一个 Go 文件内容中
pkgName 和 varName 分别指定包名和变量名;
fileHeader 指定了文件头,如果为空,则不会输出文件内容;
tag 指定了 // +build 指令下的标签,如果为空则不生成该指令;
String 将 v 打包成一份合法的 Go 字符串
Unpack 用于解压由 Bytes 或是 String 打包的内容
Source Files
¶
Click to show internal directories.
Click to hide internal directories.