Documentation ¶
Overview ¶
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2021-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- func CopyFile(srcpath, dstpath string) (err error)
- func Exists(name string) bool
- func IsDir(path string) (bool, error)
- func IsLink(path string) (bool, error)
- func KeyInList(key string, arr *[]string) bool
- func OsRelease() (string, error)
- func TryResolveBinaryAbsPath(b string) string
- type NopCloseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
Copy copies the contents of the file at srcpath to a regular file at dstpath. If dstpath already exists and is not a directory, the function truncates it. The function does not copy file modes or file attributes.
func TryResolveBinaryAbsPath ¶ added in v0.8.0
Try to resolve the abs path of the passed param Return itself if the binary is not present in the default paths (/sbin, /bin, /usr/sbin, /usr/bin)
Types ¶
type NopCloseWriter ¶ added in v0.7.0
func NewNopCloseWriter ¶ added in v0.7.0
func NewNopCloseWriter(buf *bytes.Buffer) *NopCloseWriter
func (*NopCloseWriter) Close ¶ added in v0.7.0
func (ncw *NopCloseWriter) Close() error