package
module
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 27, 2019
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 17
Opens a new window with list of known importers.
README
¶
utils

utils包提供了一些常用的golang函数
- MD5 生成md5编码;
- FileExists 判断文件或是目录是否存在;
- Merge 合并多个同类型的数据;
安装
go get github.com/issue9/utils
文档

版权
本项目采用MIT开源授权许可证,完整的授权说明可在LICENSE文件中找到。
Documentation
¶
func Merge(deep bool, elems ...interface{}) error
Merge 合并所有的元素,后一个元素的非零值将取代前一个元素中的值。
deep 是否递归合并子元素。
合并的元素只支持结构体或是结构体指针。
SplitPath 将路径按分隔符分隔成字符串数组。比如:
/a/b/c ==> []string{"a", "b", "c"}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.