Documentation ¶
Overview ¶
* @Author: wangjun haodreams@163.com * @Date: 2024-11-06 22:14:40 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-11-18 23:08:45 * @FilePath: \ai_tradee:\go\src\gitee.com\haodreams\golib\easyjs\dayjs.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Author: wangjun haodreams@163.com * @Date: 2024-11-05 22:32:47 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-11-20 09:52:27 * @FilePath: \golib\easyjs\easyjs.go * @Description: 这个包比js包更合理更科学
* @Author: wangjun haodreams@163.com * @Date: 2024-11-06 23:35:14 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-11-24 12:53:33 * @FilePath: \golib\easyjs\iconv.go * @Description: 数据转换
Index ¶
- func ConverJsType(t string) string
- func Exports(obj any) string
- func GetJsDir() string
- func Init(vm *goja.Runtime)
- func NewDayjs(vm *goja.Runtime, arg any) *goja.Object
- func ParseTime(arg any) int64
- func Register(vm *goja.Runtime, objs ...any)
- func RunScript(vm *goja.Runtime, name string, src string) (goja.Value, error)
- func SetJsDir(dir string)
- func Stack(vm *goja.Runtime) string
- type Dayjs
- type Exporter
- type Iconv
- type Namer
- type System
- func (m *System) AppendFile(path, data string) any
- func (m *System) Copy(text string)
- func (m *System) CreateProcess(binPath string) int
- func (m *System) Exit()
- func (m *System) FileModiTime(path string) int64
- func (m *System) GET(url string) any
- func (m *System) GetValue(key string) string
- func (m *System) IsDir(path string) bool
- func (m *System) IsExist(path string) bool
- func (m *System) IsFile(path string) bool
- func (m *System) IsTradeDay() bool
- func (m *System) IsWorkday() bool
- func (m *System) Kill(pid int) any
- func (m *System) Mkdir(path string) bool
- func (m *System) Name() string
- func (m *System) POST(url string, jsdata string) any
- func (m *System) PostJSON(url string, jsdata string) any
- func (m *System) ReadDir(path string) (paths []string)
- func (m *System) ReadFile(path, msg string) any
- func (m *System) ReadLines(path, msg string) []string
- func (m *System) Remove(path string) any
- func (m *System) RemoveFile(path string) any
- func (m *System) Sleep(ms int)
- func (m *System) WriteFile(path, data string) any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConverJsType ¶
Types ¶
type System ¶
type System struct { }
func (*System) AppendFile ¶
*
- @description: 追加的方式文件
- @param {*} path
- @param {string} data
- @return {*}
Directories ¶
Path | Synopsis |
---|---|
* @Date: 2021-08-15 23:11:38 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-11-01 09:27:25 * @FilePath: \golib\js\jstask\boss.go * @Description:
|
* @Date: 2021-08-15 23:11:38 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-11-01 09:27:25 * @FilePath: \golib\js\jstask\boss.go * @Description: |