Documentation ¶
Overview ¶
Package oss 操作系统相关.
包括 Abs目录, Mod模块,
Index ¶
- Constants
- Variables
- func Abs(path string) (string, error)
- func Exec(name string, args ...string) error
- func ExecOut(name string, args ...string) (string, error)
- func Exist(paths ...string) bool
- func GetMod(name string) *debug.Module
- func GetModByInfo(info *debug.BuildInfo, name string) *debug.Module
- func IsDarwin() bool
- func IsDir(paths ...string) bool
- func IsFile(paths ...string) bool
- func IsLinux() bool
- func IsWindows() bool
- func MkdirParent(path string)
- func Open(file string) error
- func Show(file string) error
- func SignalClose(errorer Errorer, closers ...Closer) context.Context
- func UniqueID() int
- func UniqueString(prefix string) string
- type Closer
- type Errorer
- type StateCode
- type Unique
Examples ¶
Constants ¶
View Source
const DefaultDirFileMod os.FileMode = 0o771
View Source
const DefaultFileMode os.FileMode = 0o664
Variables ¶
View Source
var ErrNotDefined = errors.New("OS is not defined")
ErrNotDefined 系统不支持.
Functions ¶
func MkdirParent ¶ added in v0.2.19
func MkdirParent(path string)
Types ¶
Click to show internal directories.
Click to hide internal directories.