Versions in this module Expand all Collapse all v1 v1.1.2 Mar 13, 2023 v1.1.1 Mar 13, 2023 Changes in this version + func Base64编码(data []byte) string + func Base64解码(data string) string + func E倒找文本(被搜寻的文本 string, 欲寻找的文本 string) int + func E写到文件(文件名 string, 欲写入文件的数据 []byte) error + func E写环境变量(环境变量名称 string, 欲写入内容 string) bool + func E分割文本(待分割文本 string, 用作分割的文本 string) []string + func E创建目录(欲创建的目录名称 string) error + func E删全部空(内容 string) string + func E删尾空(欲删除空格的文本 string) string + func E删除文件(欲删除的文件名 string) error + func E删除目录(欲删除的目录名称 string) error + func E删首尾空(内容 string) string + func E删首空(欲删除空格的文本 string) string + func E到全角(value string) string + func E到半角(value string) string + func E到大写(value string) string + func E到字节(value interface{}) byte + func E到字节集(value interface{}) []byte + func E到小写(value string) string + func E到数值(value interface{}) float64 + func E到整数(value interface{}) int64 + func E到文本(value interface{}) string + func E到结构体(待转换的参数 interface{}, 结构体指针 interface{}) error + func E取临时文件名(目录名 string) (f *os.File, filepath string, err error) + func E取代码(欲取字符代码的文本 string) int + func E取命令行() []string + func E取当前目录() string + func E取整(value interface{}) int + func E取文件尺寸(文件名 string) int64 + func E取文本右边(欲取其部分的文本 string, 欲取出字符的数目 int64) string + func E取文本左边(欲取其部分的文本 string, 欲取出字符的数目 int64) string + func E取文本长度(value string) int64 + func E取空白文本(重复次数 int) string + func E取绝对值(双精度小数型 float64) float64 + func E取运行目录() string + func E取重复文本(重复次数 int, 待重复文本 string) string + func E取随机数(欲取随机数的最小值 int, 欲取随机数的最大值 int) int + func E四舍五入(欲被四舍五入的数值 float64, 被舍入的位置 int) float64 + func E复制文件(被复制的文件名 string, 复制到的文件名 string) error + func E子文本替换(欲被替换的文本 string, 欲被替换的子文本 string, ...) string + func E字符(字节型 int8) string + func E寻找文本(被搜寻的文本 string, 欲寻找的文本 string) int + func E延时(欲等待的时间 int64) + func E文件是否存在(欲测试的文件名称 string) bool + func E文件更名(欲更名的原文件或目录名 string, ...) error + func E文本编码转换(str interface{}, 来源编码 string, 目标编码 string) string + func E标准输入() string + func E标准输出(a ...interface{}) + func E求余弦(欲进行计算的角 float64) float64 + func E求反正切(欲求其反正切值的数值 float64) float64 + func E求平方根(欲求次方数值 float64) float64 + func E求次方(欲求次方数值 float64, 次方数 float64) float64 + func E求正切(欲进行计算的角 float64) float64 + func E求正弦(欲进行计算的角 float64) float64 + func E移动文件(被移动的文件 string, 移动到的位置 string) error + func E结束() + func E编码_gbk到utf8(str string) string + func E编码_utf8到gbk(str string) string + func E编码_是否为gbk(data []byte) bool + func E编码_是否为utf8(data []byte) bool + func E编码_检测(s interface{}) string + func E置随机数种子(欲置入的种子数值 int64) + func E读入文件(文件名 string) []byte + func E读环境变量(环境变量名称 string, 默认值 ...interface{}) string + func E调试输出(a ...interface{}) + func E调试输出格式化(s string, a ...interface{}) + func E运行_win(欲运行的命令行 string, 是否等待程序运行完毕 bool) string + func URL编码(str string) string + func URL解析(str string, component int) map[string]string + func URL解码(str string) string + type E日期时间型 struct + Time *gtime.Time + func E到时间(s string) *E日期时间型 + func E到时间从时间戳(s int64) *E日期时间型 + func E取现行时间() *E日期时间型 + func (this *E日期时间型) E到友好时间(d *E日期时间型) string + func (this *E日期时间型) E取分钟() int64 + func (this *E日期时间型) E取小时() int64 + func (this *E日期时间型) E取年份() int64 + func (this *E日期时间型) E取微秒() int64 + func (this *E日期时间型) E取日() int64 + func (this *E日期时间型) E取时间戳() int64 + func (this *E日期时间型) E取时间戳微秒() int64 + func (this *E日期时间型) E取时间戳毫秒() int64 + func (this *E日期时间型) E取时间戳纳秒() int64 + func (this *E日期时间型) E取星期几() int64 + func (this *E日期时间型) E取月份() int64 + func (this *E日期时间型) E取月天数() int64 + func (this *E日期时间型) E取毫秒() int64 + func (this *E日期时间型) E取秒() int64 + func (this *E日期时间型) E取纳秒() int64 + func (this *E日期时间型) E增减日期(年 int, 月 int, 日 int) *E日期时间型 + func (this *E日期时间型) E增减时间(时 int, 分 int, 秒 int) *E日期时间型 + func (this *E日期时间型) E大于(time *E日期时间型) bool + func (this *E日期时间型) E小于(time *E日期时间型) bool + func (this *E日期时间型) E时间到文本(format string) string + func (this *E日期时间型) E等于(time *E日期时间型) bool