util

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilePermission os.FileMode = 0o644
)

Variables

View Source
var ErrHTTPStatusCodeIsGreaterEqualThan300 = errors.New("HTTP status code is greater equal than 300")

Functions

func Abs

func Abs(wd, p string) string

func AllowOwnerExec

func AllowOwnerExec(mode os.FileMode) os.FileMode

func BoolP

func BoolP(a bool) *bool

func Copy

func Copy(fs afero.Fs, src, dst string) error

func Ext

func Ext(s, version string) string

func Int64P

func Int64P(a int64) *int64

func IntP

func IntP(a int) *int

func IsOwnerExecutable

func IsOwnerExecutable(mode os.FileMode) bool

func MkdirAll

func MkdirAll(fs afero.Fs, p string) error

func StrP

func StrP(a string) *string

func Wait

func Wait(ctx context.Context, duration time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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