Documentation ¶
Index ¶
- Constants
- func AppendCreateFile(filePath string) (*os.File, error)
- func AppendFile(filePath string) (*os.File, error)
- func CreateDir(dir string) error
- func DeleteDir(dir string) error
- func DeleteFile(filePath string) error
- func DirExist(dir string) bool
- func DirNotExist(dir string) bool
- func FileExist(filePath string) bool
- func FileNotExist(filePath string) bool
- func GetDirFileNames(dir string) ([]string, error)
- func GetWorkPath(s ...string) (string, error)
- func IsAbsolutePath(filePath string) error
- func OverwriteCreateFile(filePath string) (*os.File, error)
- func OverwriteFile(filePath string) (*os.File, error)
- type ArchFamilyType
Constants ¶
View Source
const ( DirPerm = 0755 FilePerm = 0666 )
View Source
const ( Amd64 = `amd64` Amd64p32 = `` Arm = `arm` Armbe = `` Arm64 = `arm64` Arm64be = `arm64be` Loong64 = `loong64` Mips = `mips` Mipsle = `mipsle` Mips64 = `mips64` Mips64le = `mips64le` Mips64p32 = `mips64p32` Mips64p32le = `mips64p32le` Ppc = `ppc` Ppc64 = `ppc64` Ppc64le = `ppc64le` Riscv = `riscv` Riscv64 = `riscv64` S390 = `s390` S390x = `s390x` Sparc = `sparc` Sparc64 = `sparc64` Wasm = `wasm` )
View Source
const ( Aix = `aix` Android = `android` Darwin = `darwin` Dragonfly = `dragonfly` Freebsd = `freebsd` Hurd = `hurd` Illumos = `illumos` Ios = `ios` Js = `js` Linux = `linux` Nacl = `` Netbsd = `netbsd` Openbsd = `openbsd` Plan9 = `plan9` Solaris = `solaris` Wasip1 = `wasip1` Windows = `windows` Zos = `zos` )
referred from: internal/goos
View Source
const (
Slash = slash
)
Variables ¶
This section is empty.
Functions ¶
func AppendCreateFile ¶ added in v1.1.7
AppendCreateFile append file if exist and create file if not exist
func DeleteFile ¶
func DirNotExist ¶
func FileNotExist ¶
func GetDirFileNames ¶ added in v1.2.15
func GetWorkPath ¶
func IsAbsolutePath ¶ added in v1.1.7
func OverwriteCreateFile ¶ added in v1.1.7
OverwriteCreateFile overwrite file if exist and create file if not exist
Types ¶
type ArchFamilyType ¶ added in v1.1.7
type ArchFamilyType int
copy from: internal/goarch/goarch.go
const ( AMD64 ArchFamilyType = iota ARM ARM64 I386 LOONG64 MIPS MIPS64 PPC64 RISCV64 S390X WASM )
Click to show internal directories.
Click to hide internal directories.