file

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Author: jffan * @Date: 2024-07-30 14:23:59 * @LastEditTime: 2024-08-15 09:24:19 * @LastEditors: jffan * @FilePath: \gitee-tcas\utils\file\file.go * @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirExists

func EnsureDirExists(dirPath string) error

Determine whether the directory exists, and if it does not exist, create it

func FileToBase64

func FileToBase64(filePath string) (string, error)

file to base64

func IsDir

func IsDir(path string) bool

judge path is Dir

func IsExists

func IsExists(path string) bool

judge file exists

func IsFile

func IsFile(path string) bool

judge path is fiel

func ReadJSONFile

func ReadJSONFile(filePath string) (json.RawMessage, error)

read json file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL