golang

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	O_RDONLY = os.O_RDONLY // open the file read-only.
	O_WRONLY = os.O_WRONLY // open the file write-only.
	O_RDWR   = os.O_RDWR   // open the file read-write.
	// The remaining values may be or'ed in to control behavior.
	O_APPEND = os.O_APPEND // append data to the file when writing.
	O_CREATE = os.O_CREATE // create a new file if none exists.
	O_EXCL   = os.O_EXCL   // used with O_CREATE, file must not exist.
	O_SYNC   = os.O_SYNC   // open for synchronous I/O.
	O_TRUNC  = os.O_TRUNC  // truncate regular writable file when opened.
)

Variables

View Source
var (
	Chmod           = os.Chmod
	ErrExist        = os.ErrExist
	IsExist         = os.IsExist
	IsNotExist      = os.IsNotExist
	IsPathSeparator = os.IsPathSeparator
	IsPermission    = os.IsPermission
	Lstat           = os.Lstat
	ModeSetgid      = os.ModeSetgid
	ModeSetuid      = os.ModeSetuid
	ModeSticky      = os.ModeSticky
	NewFile         = os.NewFile
	PathSeparator   = os.PathSeparator
	Stat            = os.Stat
	TempDir         = os.TempDir
)
View Source
var (
	Mkdir    = os.Mkdir
	OpenFile = os.OpenFile
)
View Source
var PrefixAndSuffix = prefixAndSuffix

Functions

func MkdirTemp

func MkdirTemp(dir, pattern string, perm FileMode) (string, error)

func Uitoa

func Uitoa(val uint) string

Types

type File

type File = os.File

func CreateTemp

func CreateTemp(dir, pattern string, perm FileMode) (*File, error)

type FileMode

type FileMode = os.FileMode

type PathError

type PathError = os.PathError

Jump to

Keyboard shortcuts

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