internal_api

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func AppendCreateFile(filePath string) (*os.File, error)

AppendCreateFile append file if exist and create file if not exist

func AppendFile added in v1.1.7

func AppendFile(filePath string) (*os.File, error)

func CreateDir

func CreateDir(dir string) error

func DeleteDir

func DeleteDir(dir string) error

func DeleteFile

func DeleteFile(filePath string) error

func DirExist

func DirExist(dir string) bool

func DirNotExist

func DirNotExist(dir string) bool

func FileExist

func FileExist(filePath string) bool

func FileNotExist

func FileNotExist(filePath string) bool

func GetDirFileNames added in v1.2.15

func GetDirFileNames(dir string) ([]string, error)

func GetWorkPath

func GetWorkPath(s ...string) (string, error)

func IsAbsolutePath added in v1.1.7

func IsAbsolutePath(filePath string) error

func OverwriteCreateFile added in v1.1.7

func OverwriteCreateFile(filePath string) (*os.File, error)

OverwriteCreateFile overwrite file if exist and create file if not exist

func OverwriteFile added in v1.1.7

func OverwriteFile(filePath string) (*os.File, error)

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
)

Jump to

Keyboard shortcuts

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