Documentation ¶
Overview ¶
Package helper 一些通用的辅助类函数
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpTextFile ¶
DumpTextFile 将文本内容 text 输出到 path 指定的文件中
func DumpYAMLFile ¶
DumpYAMLFile 将 obj 转换成 YAML 格式的文本并输出到 path 指定的文件中
func LoadYAMLFile ¶
LoadYAMLFile 加载 YAML 格式的文件 path 中的内容到 obj,obj 必须量个指针。
func ReplaceContent ¶
ReplaceContent 替换 content 中的 %content% 内容为 replacement
Types ¶
type FieldError ¶
FieldError 表示加载文件出错时的具体的错误信息
func (*FieldError) Error ¶
func (err *FieldError) Error() string
Click to show internal directories.
Click to hide internal directories.