Documentation
¶
Overview ¶
Package os provides a platform-independent interface to operating system functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v0.7.0
Copy copies src content into dst. If dst doesn't exists, it will be created. src mode will override dst mode. Only file-file or directory-directory operations should be performed.
func CopyDir ¶ added in v0.7.0
CopyDir copies src content recursively into dst, if dst doesn't exists it will be created. mode will be the new dst mode, its content will preserve the origin mode.
func CopyFile ¶ added in v0.7.0
CopyFile copies src content into dst, if dst exists it will be truncated. mode will be the new dst mode.
func GetenvOr ¶ added in v0.8.0
GetenvOr retrieves the value of the environment variable named by the key. If the variable is empty or absent, val will be used as the return value.
func NewCopyError ¶ added in v0.7.0
NewCopyError creates a CopyError.