kitFile

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* kitFile.go File-difine * by:Leftyer * dt:2025-11-01

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearFolder added in v0.1.6

func ClearFolder(path string) error

Folder-Clear-difine by:Leftyer dt:2025-11-01

func CopyFile

func CopyFile(src, dst string) error

File-Copy-difine by:Leftyer dt:2025-11-01

func CopyFolder

func CopyFolder(src, dst string) error

Folder-Copy-difine by:Leftyer dt:2025-11-01

func IsFileExist

func IsFileExist(path string) bool

File-IsExist-difine by:Leftyer dt:2025-11-01

func IsFolderExist

func IsFolderExist(path string, isClear int) bool

Folder-IsExist-difine by:Leftyer dt:2025-11-01

func ReadFile

func ReadFile(filePath string) (string, error)

File-Read-difine by:Leftyer dt:2025-11-01

func ReadJSON

func ReadJSON[T any](path string) (T, error)

File-Read-Json-difine by:Leftyer dt:2025-11-01

func WriteFile

func WriteFile(filePath string, content string) error

File-Write-difine by:Leftyer dt:2025-11-01

func WriteJSON

func WriteJSON[T any](path string, obj T) error

File-Write-Json-difine by:Leftyer dt:2025-11-01

Types

type FileConfig

type FileConfig struct{}

File-config-difine by:Leftyer dt:2025-11-01

Jump to

Keyboard shortcuts

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