Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func FileExists(path string) (bool, error) func GetCurrentDirectory() string func OpenProgramOrFile(argv []string) error func ReadTextFromFile(path string) (string, error) func SaveBase64AsFile(base64Str *string, fileURL string) (err error) func SaveTextToFile(text, fileURL string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FileExists ¶ func FileExists(path string) (bool, error) 判断文件或文件夹是否存在 func GetCurrentDirectory ¶ func GetCurrentDirectory() string 获取当前路径 func OpenProgramOrFile ¶ func OpenProgramOrFile(argv []string) error OpenProgramOrFile 启动程序 func ReadTextFromFile ¶ func ReadTextFromFile(path string) (string, error) ReadTextFromFile 从文本读取内容 func SaveBase64AsFile ¶ func SaveBase64AsFile(base64Str *string, fileURL string) (err error) 保存base64为文件,一般用于保存图片 func SaveTextToFile ¶ func SaveTextToFile(text, fileURL string) error 保存Text到文本 Types ¶ This section is empty. Source Files ¶ View all Source files fileutils.go run_linux.go Click to show internal directories. Click to hide internal directories.