internal

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

func Int

func Int(i int) *int

func Int64

func Int64(i int64) *int64

func String

func String(str string) *string

func StripAnsi

func StripAnsi(str string) string

func Time

func Time(t time.Time) *time.Time

func UInt

func UInt(i uint) *uint

Types

type Workdir

type Workdir struct {
	// contains filtered or unexported fields
}

Workdir is the working directory for pug, which is the directory in which modules are expected to reside.

func NewTestWorkdir

func NewTestWorkdir(t *testing.T) Workdir

func NewWorkdir

func NewWorkdir(path string) (Workdir, error)

NewWorkdir constructs a working directory from the path. The path must exist.

func (Workdir) Join added in v0.5.0

func (wd Workdir) Join(paths ...string) string

func (Workdir) PrettyString

func (wd Workdir) PrettyString() string

func (Workdir) Rel added in v0.5.0

func (wd Workdir) Rel(path string) (string, error)

Rel returns a relative path to the working directory.

func (Workdir) String

func (wd Workdir) String() string

Directories

Path Synopsis
package app is the main entrypoint into the application, responsible for configuring and starting the application, services, dependency injection, etc.
package app is the main entrypoint into the application, responsible for configuring and starting the application, services, dependency injection, etc.
tui
top

Jump to

Keyboard shortcuts

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