Versions in this module Expand all Collapse all v0 v0.15.0 Nov 19, 2026 Changes in this version type Options + func (o Options) Args() []string v0.14.0 Nov 18, 2026 v0.13.0 Nov 18, 2026 Changes in this version + const April + const August + const DateOnly + const DateTime + const December + const February + const Friday + const Hour + const January + const July + const June + const KindArray + const KindBool + const KindChan + const KindComplex128 + const KindComplex64 + const KindFloat32 + const KindFloat64 + const KindFunc + const KindInt + const KindInt16 + const KindInt32 + const KindInt64 + const KindInt8 + const KindInterface + const KindInvalid + const KindMap + const KindPointer + const KindSlice + const KindString + const KindStruct + const KindUint + const KindUint16 + const KindUint32 + const KindUint64 + const KindUint8 + const KindUintptr + const KindUnsafePointer + const Kitchen + const LSPServerName + const LSPServerVersion + const LSPSeverityError + const LSPSeverityHint + const LSPSeverityInformation + const LSPSeverityWarning + const March + const May + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + const Microsecond + const Millisecond + const Minute + const ModeAppend + const ModeCharDevice + const ModeDevice + const ModeDir + const ModeExclusive + const ModeIrregular + const ModeNamedPipe + const ModePerm + const ModeSetgid + const ModeSetuid + const ModeSocket + const ModeSticky + const ModeSymlink + const ModeTemporary + const ModeType + const Monday + const Nanosecond + const November + const O_APPEND + const O_CREATE + const O_EXCL + const O_NOFOLLOW + const O_RDONLY + const O_RDWR + const O_SYNC + const O_TRUNC + const O_WRONLY + const October + const PathListSeparator + const PathSeparator + const RFC1123 + const RFC3339 + const RFC3339Nano + const Saturday + const Second + const September + const StatusAccepted + const StatusBadGateway + const StatusBadRequest + const StatusConflict + const StatusCreated + const StatusForbidden + const StatusGatewayTimeout + const StatusGone + const StatusInternalServerError + const StatusMethodNotAllowed + const StatusNoContent + const StatusNotFound + const StatusNotImplemented + const StatusOK + const StatusServiceUnavailable + const StatusTooManyRequests + const StatusUnauthorized + const StatusUnprocessableEntity + const Sunday + const Thursday + const TimeDateOnly + const TimeDateTime + const TimeKitchen + const TimeOnly + const TimeRFC1123 + const TimeRFC3339 + const TimeRFC3339Nano + const TimeRFC822 + const TimeStamp + const TimeTimeOnly + const Tuesday + const Wednesday + var AnError = NewError("core test sentinel error") + var AssertVerbose = false + var DefaultHTTPClient = http.DefaultClient + var EOF = io.EOF + var ErrClosed = os.ErrClosed + var ErrExist = os.ErrExist + var ErrHTTPServerClosed = http.ErrServerClosed + var ErrInvalid = os.ErrInvalid + var ErrNoRows = sql.ErrNoRows + var ErrNotExist = os.ErrNotExist + var ErrPermission = os.ErrPermission + var ErrTxDone = sql.ErrTxDone + var Local = time.Local + var PathSkipAll = filepath.SkipAll + var PathSkipDir = filepath.SkipDir + var RotationWriterFactory func(RotationLogOptions) goio.WriteCloser + var UTC = time.UTC + func Abs[T signedOrFloat](x T) T + func AddAsset(group, name, data string) + func After(d Duration) <-chan Time + func AllocsPerRun(runs int, fn func()) float64 + func AppendBool(dst []byte, b bool) []byte + func AppendFloat(dst []byte, f float64, fmt byte, prec, bitSize int) []byte + func AppendInt(dst []byte, i int64, base int) []byte + func AppendQuote(dst []byte, s string) []byte + func AppendUint(dst []byte, i uint64, base int) []byte + func Arch() string + func ArgBool(index int, args ...any) bool + func ArgInt(index int, args ...any) int + func ArgString(index int, args ...any) string + func Args() []string + func As(err error, target any) bool + func AsBytes(s string) []byte + func AsString(b []byte) string + func AssertAllocs(t TB, max int, fn func(), msg ...string) + func AssertCLI(t TB, c *Core, tc CLITest) + func AssertCLIs(t *T, c *Core, cases []CLITest) + func AssertContains(t TB, haystack, needle any, msg ...string) + func AssertElementsMatch(t TB, want, got any, msg ...string) + func AssertEmpty(t TB, v any, msg ...string) + func AssertEqual(t TB, want, got any, msg ...string) + func AssertError(t TB, err error, msg ...string) + func AssertErrorIs(t TB, err, target error, msg ...string) + func AssertFalse(t TB, condition bool, msg ...string) + func AssertGreater(t TB, got, want any, msg ...string) + func AssertGreaterOrEqual(t TB, got, want any, msg ...string) + func AssertInDelta(t TB, want, got, delta float64, msg ...string) + func AssertLen(t TB, v any, want int, msg ...string) + func AssertLess(t TB, got, want any, msg ...string) + func AssertLessOrEqual(t TB, got, want any, msg ...string) + func AssertNil(t TB, v any, msg ...string) + func AssertNoError(t TB, err error, msg ...string) + func AssertNotContains(t TB, haystack, needle any, msg ...string) + func AssertNotEmpty(t TB, v any, msg ...string) + func AssertNotEqual(t TB, want, got any, msg ...string) + func AssertNotNil(t TB, v any, msg ...string) + func AssertNotPanics(t TB, fn func(), msg ...string) + func AssertPanics(t TB, fn func(), msg ...string) + func AssertPanicsWithError(t TB, wantSubstr string, fn func(), msg ...string) + func AssertSame(t TB, want, got any, msg ...string) + func AssertTrue(t TB, condition bool, msg ...string) + func Base64Encode(src []byte) string + func Base64URLEncode(src []byte) string + func BigEndianUint64(b []byte) uint64 + func Cast[T any](r Result) (T, bool) + func Ceil(x float64) float64 + func Clamp[T Ordered](x, lo, hi T) T + func CleanPath(p, ds string) string + func Clone(s string) string + func CloseStream(v any) + func Coalesce[T comparable](vals ...T) T + func Compare[T Ordered](a, b T) int + func Concat(parts ...string) string + func ConfigGet[T any](e *Config, key string) T + func Contains(s, substr string) bool + func ContainsAny(s, chars string) bool + func ContainsRune(s string, r rune) bool + func CopyValue(dst, src Value) int + func Count(s, substr string) int + func Cut(s, sep string) (before, after string, found bool) + func CutPrefix(s, prefix string) (after string, found bool) + func CutSuffix(s, suffix string) (before string, found bool) + func Debug(msg string, keyvals ...any) + func DeepEqual(x, y any) bool + func E(op, msg string, err error) error + func Env(key string) string + func EnvKeys() []string + func Environ() []string + func EqualFold(s, t string) bool + func Error(msg string, keyvals ...any) + func ErrorCode(err error) string + func ErrorJoin(errs ...error) error + func ErrorMessage(err error) string + func Errorf(format string, args ...any) error + func Exit(code int) + func Fields(s string) []string + func FilterArgs(args []string) []string + func FirstNonBlank(vals ...string) string + func FirstPositive[T Ordered](vals ...T) T + func Floor(x float64) float64 + func FormatInt(i int64, base int) string + func FormatStackTrace(err error) string + func FormatUint(i uint64, base int) string + func Getenv(key string) string + func Getpid() int + func Getppid() int + func GoVersion() string + func HTMLEscape(s string) string + func HTMLUnescape(s string) string + func HTTPError(w ResponseWriter, error string, code int) + func HTTPStatusText(code int) string + func HasPrefix(s, prefix string) bool + func HasSuffix(s, suffix string) bool + func HexAppendEncode(dst, src []byte) []byte + func HexEncode(src []byte) string + func ID() string + func Index(s, sep string) int + func IndexAny(s, chars string) int + func Info(msg string, keyvals ...any) + func Is(err, target error) bool + func IsDigit(r rune) bool + func IsExist(err error) bool + func IsFlag(arg string) bool + func IsLetter(r rune) bool + func IsLower(r rune) bool + func IsNaN(x float64) bool + func IsNotExist(err error) bool + func IsPermission(err error) bool + func IsSpace(r rune) bool + func IsUpper(r rune) bool + func Itoa(i int) string + func JSONMarshalString(v any) string + func JSONValid(data []byte) bool + func Join(sep string, parts ...string) string + func JoinPath(segments ...string) string + func Keccak256(data []byte) [32]byte + func Keccak256Hex(data []byte) string + func LSPDiagnosticSources() []string + func LSPRegisterDiagnostic(name string, fn LSPDiagnosticSource) + func LastIndex(s, substr string) int + func LittleEndianUint64(b []byte) uint64 + func LookupEnv(key string) (string, bool) + func Lower(s string) string + func MapClone[K comparable, V any](m map[K]V) map[K]V + func MapFilter[K comparable, V any](m map[K]V, pred func(K, V) bool) map[K]V + func MapHasKey[K comparable, V any](m map[K]V, k K) bool + func MapKeys[K comparable, V any](m map[K]V) []K + func MapMerge[K comparable, V any](a, b map[K]V) map[K]V + func MapString[K comparable](m map[K]any, key K) string + func MapValues[K comparable, V any](m map[K]V) []V + func Max[T Ordered](a, b T) T + func Min[T Ordered](a, b T) T + func MustCast[T any](r Result) T + func MustServiceFor[T any](c *Core, name string) T + func NaN() float64 + func NetPipe() (Conn, Conn) + func NewBuffer(b ...[]byte) *bytes.Buffer + func NewBufferReader(b []byte) *bytes.Reader + func NewBufferString(s string) *bytes.Buffer + func NewBuilder() *strings.Builder + func NewCode(code, msg string) error + func NewError(text string) error + func NewLineScanner(r Reader) *bufio.Scanner + func NewLineScannerWithSize(r Reader, max int) *bufio.Scanner + func NewReader(s string) *strings.Reader + func Now() time.Time + func NumCPU() int + func OS() string + func On[T Message](c *Core, fn func(T) Result) + func Operation(err error) string + func ParseFlag(arg string) (key, value string, valid bool) + func Path(segments ...string) string + func PathBase(p string) string + func PathChangeExt(p, newExt string) string + func PathDir(p string) string + func PathExt(p string) string + func PathGlob(pattern string) []string + func PathIsAbs(p string) bool + func PathJoin(segments ...string) string + func PathToSlash(p string) string + func PinSlice[T any](slice []T, view *PinnedView) + func Pow(x, y float64) float64 + func Print(w Writer, format string, args ...any) + func Println(args ...any) + func Pull2[K, V any](seq Seq2[K, V]) (next func() (K, V, bool), stop func()) + func Pull[V any](seq Seq[V]) (next func() (V, bool), stop func()) + func PutLittleEndianUint64(b []byte, v uint64) + func RandIntn(n int) int + func RandPick[T any](items []T) T + func Repeat(s string, count int) string + func Replace(s, old, new string) string + func RequireNoError(t TB, err error, msg ...string) + func RequireNotEmpty(t TB, v any, msg ...string) + func RequireTrue(t TB, condition bool, msg ...string) + func Root(err error) error + func Round(x float64) float64 + func RuneCount(s string) int + func SHA256(data []byte) [32]byte + func SHA256Hex(data []byte) string + func SHA256HexString(s string) string + func SHA256String(s string) [32]byte + func SHA3Shake128(data []byte, outLen int) []byte + func SHA3Shake256(data []byte, outLen int) []byte + func SHA3_256(data []byte) [32]byte + func SHA3_256Hex(data []byte) string + func SQLDrivers() []string + func SQLIsNoRows(err error) bool + func SanitisePath(path string) string + func Security(msg string, keyvals ...any) + func ServiceFor[T any](c *Core, name string) (T, bool) + func SetDefault(l *Log) + func SetLevel(level Level) + func SetRedactKeys(keys ...string) + func Sign[T signedOrFloat](x T) T + func Since(t time.Time) time.Duration + func Sleep(d time.Duration) + func SliceAll[T any](s []T, pred func(T) bool) bool + func SliceAny[T any](s []T, pred func(T) bool) bool + func SliceClone[T any](s []T) []T + func SliceContains[T comparable](s []T, v T) bool + func SliceDrop[T any](s []T, n int) []T + func SliceEqual[T comparable](a, b []T) bool + func SliceFilter[T any](s []T, pred func(T) bool) []T + func SliceFlatMap[T any, U any](s []T, fn func(T) []U) []U + func SliceIndex[T comparable](s []T, v T) int + func SliceMap[T any, U any](s []T, fn func(T) U) []U + func SliceReduce[T any, U any](s []T, init U, fn func(U, T) U) U + func SliceReverse[T any](s []T) + func SliceSortFunc[T any](s []T, less func(a, b T) bool) + func SliceSort[T Ordered](s []T) + func SliceSorted[T Ordered](seq Seq[T]) []T + func SliceTake[T any](s []T, n int) []T + func SliceUniq[T comparable](s []T) []T + func Split(s, sep string) []string + func SplitN(s, sep string, n int) []string + func Sprint(args ...any) string + func Sprintf(format string, args ...any) string + func Sprintln(args ...any) string + func StackBuf() []byte + func StackTrace(err error) []string + func TempDir() string + func Tick(d Duration) <-chan Time + func TimeFormat(t time.Time, layout string) string + func ToLower(r rune) rune + func ToUpper(r rune) rune + func Trim(s string) string + func TrimCutset(s, cutset string) string + func TrimLeft(s, cutset string) string + func TrimPrefix(s, prefix string) string + func TrimRight(s, cutset string) string + func TrimSuffix(s, suffix string) string + func URLEncode(s string) string + func URLNormalize(rawURL string) string + func URLPathEscape(s string) string + func UnixNow() int64 + func UnixTime(sec int64) time.Time + func Until(t time.Time) time.Duration + func Upper(s string) string + func Username() string + func Warn(msg string, keyvals ...any) + func WithCancel(parent Context) (Context, CancelFunc) + func WithDeadline(parent Context, deadline Time) (Context, CancelFunc) + func WithTimeout(parent Context, d Duration) (Context, CancelFunc) + func Wrap(err error, op, msg string) error + func WrapCode(err error, code, op, msg string) error + type API struct + func (a *API) Call(endpoint string, action string, opts Options) Result + func (a *API) Discover() Result + func (a *API) Exists() bool + func (a *API) Invoke(action string, opts Options) Result + func (a *API) On(name string) *API + func (a *API) Protocols() []string + func (a *API) RegisterProtocol(scheme string, factory StreamFactory) + func (a *API) Stream(name ...string) Result + type Action struct + Description string + Handler ActionHandler + Name string + Schema Options + func (a *Action) Disable() + func (a *Action) Enable() + func (a *Action) Enabled() bool + func (a *Action) Exists() bool + func (a *Action) Run(ctx Context, opts Options) (result Result) + type ActionHandler func(Context, Options) Result + type ActionServiceReload struct + type ActionServiceShutdown struct + type ActionServiceStartup struct + type ActionTaskCompleted struct + Action string + Result Result + TaskIdentifier string + type ActionTaskProgress struct + Action string + Message string + Progress float64 + TaskIdentifier string + type ActionTaskStarted struct + Action string + Options Options + TaskIdentifier string + type Addr = net.Addr + type App struct + Description string + Filename string + Name string + Path string + Runtime any + Version string + func (a App) Find(filename, name string) Result + func (a App) New(opts Options) App + type Array struct + func NewArray[T comparable](items ...T) *Array[T] + func (s *Array[T]) Add(values ...T) + func (s *Array[T]) AddUnique(values ...T) + func (s *Array[T]) AsSlice() []T + func (s *Array[T]) Clear() + func (s *Array[T]) Contains(val T) bool + func (s *Array[T]) Deduplicate() + func (s *Array[T]) Each(fn func(T)) + func (s *Array[T]) Filter(fn func(T) bool) Result + func (s *Array[T]) IndexOf(val T) int + func (s *Array[T]) Len() int + func (s *Array[T]) Remove(val T) + type AssetGroup struct + type AssetRef struct + FullPath string + Group string + Name string + Path string + type AtomicBool struct + func (a *AtomicBool) CompareAndSwap(old, new bool) bool + func (a *AtomicBool) Load() bool + func (a *AtomicBool) Store(val bool) + func (a *AtomicBool) Swap(new bool) bool + type AtomicInt32 struct + func (a *AtomicInt32) Add(delta int32) int32 + func (a *AtomicInt32) CompareAndSwap(old, new int32) bool + func (a *AtomicInt32) Load() int32 + func (a *AtomicInt32) Store(val int32) + func (a *AtomicInt32) Swap(new int32) int32 + type AtomicInt64 struct + func (a *AtomicInt64) Add(delta int64) int64 + func (a *AtomicInt64) CompareAndSwap(old, new int64) bool + func (a *AtomicInt64) Load() int64 + func (a *AtomicInt64) Store(val int64) + func (a *AtomicInt64) Swap(new int64) int64 + type AtomicPointer struct + func (a *AtomicPointer[T]) CompareAndSwap(old, new *T) bool + func (a *AtomicPointer[T]) Load() *T + func (a *AtomicPointer[T]) Store(val *T) + func (a *AtomicPointer[T]) Swap(new *T) *T + type AtomicUint32 struct + func (a *AtomicUint32) Add(delta uint32) uint32 + func (a *AtomicUint32) CompareAndSwap(old, new uint32) bool + func (a *AtomicUint32) Load() uint32 + func (a *AtomicUint32) Store(val uint32) + func (a *AtomicUint32) Swap(new uint32) uint32 + type AtomicUint64 struct + func (a *AtomicUint64) Add(delta uint64) uint64 + func (a *AtomicUint64) CompareAndSwap(old, new uint64) bool + func (a *AtomicUint64) Load() uint64 + func (a *AtomicUint64) Store(val uint64) + func (a *AtomicUint64) Swap(new uint64) uint64 + type B = testing.B + type BufReader = bufio.Reader + func NewBufReader(r Reader) *BufReader + type Buffer = bytes.Buffer + type Builder = strings.Builder + type CLITest struct + Args []string + Cmd string + Contains string + Dir string + Env []string + Name string + Output string + Stdin string + WantOK bool + type CancelFunc = context.CancelFunc + type Cli struct + func (cl *Cli) Banner() string + func (cl *Cli) Print(format string, args ...any) + func (cl *Cli) PrintHelp() + func (cl *Cli) Run(args ...string) Result + func (cl *Cli) SetBanner(fn func(*Cli) string) + func (cl *Cli) SetOutput(w Writer) + type CliOptions struct + type Closer = io.Closer + type Cmd = exec.Cmd + type Command struct + Action CommandAction + Description string + Flags Options + Hidden bool + Managed string + Name string + Path string + func (cmd *Command) I18nKey() string + func (cmd *Command) IsManaged() bool + func (cmd *Command) Run(opts Options) Result + type CommandAction func(Options) Result + type CommandRegistry struct + type Config struct + func (e *Config) Bool(key string) bool + func (e *Config) Disable(feature string) + func (e *Config) Enable(feature string) + func (e *Config) Enabled(feature string) bool + func (e *Config) EnabledFeatures() []string + func (e *Config) FromEnv(prefix string) Result + func (e *Config) Get(key string) Result + func (e *Config) Group(name string) *Config + func (e *Config) Int(key string) int + func (e *Config) Load(path string) Result + func (e *Config) New() *Config + func (e *Config) Set(key string, val any) + func (e *Config) String(key string) string + type ConfigOptions struct + Features map[string]bool + Settings map[string]any + type ConfigVar struct + func NewConfigVar[T any](val T) ConfigVar[T] + func (v *ConfigVar[T]) Get() T + func (v *ConfigVar[T]) IsSet() bool + func (v *ConfigVar[T]) Set(val T) + func (v *ConfigVar[T]) Unset() + type Conn = net.Conn + type Context = context.Context + func Background() Context + func TODO() Context + func WithValue(parent Context, key, val any) Context + type Cookie = http.Cookie + type Core struct + func MustNew(opts ...CoreOption) *Core + func New(opts ...CoreOption) *Core + func (c *Core) ACTION(msg Message) Result + func (c *Core) API(name ...string) *API + func (c *Core) Action(name string, handler ...ActionHandler) *Action + func (c *Core) Actions() []string + func (c *Core) App() *App + func (c *Core) Cli() *Cli + func (c *Core) Command(path string, command ...Command) Result + func (c *Core) Commands() []string + func (c *Core) Config(group ...string) *Config + func (c *Core) Context() Context + func (c *Core) Core() *Core + func (c *Core) Data(name ...string) *Data + func (c *Core) Drive(name ...string) *Drive + func (c *Core) Entitled(action string, quantity ...int) Entitlement + func (c *Core) Env(key string) string + func (c *Core) Error() *ErrorPanic + func (c *Core) Exit(code int) + func (c *Core) ExitNow(code int) + func (c *Core) ExitWith(opts ExitOptions) + func (c *Core) Feature(name string) Feature + func (c *Core) Fs() *Fs + func (c *Core) Go(fn func()) + func (c *Core) I18n() *I18n + func (c *Core) IPC() *Ipc + func (c *Core) IsShutdown() bool + func (c *Core) Lock(name string) *Lock + func (c *Core) LockApply() + func (c *Core) LockEnable() + func (c *Core) Log() *ErrorLog + func (c *Core) LogError(err error, op, msg string) Result + func (c *Core) LogWarn(err error, op, msg string) Result + func (c *Core) Must(err error, op, msg string) + func (c *Core) Options() *Options + func (c *Core) PerformAsync(action string, opts Options) Result + func (c *Core) Process() *Process + func (c *Core) Progress(taskID string, progress float64, message string, action string) + func (c *Core) QUERY(q Query) Result + func (c *Core) QUERYALL(q Query) Result + func (c *Core) Query(q Query) Result + func (c *Core) QueryAll(q Query) Result + func (c *Core) RecordUsage(action string, quantity ...int) + func (c *Core) RegisterAction(handler func(*Core, Message) Result) + func (c *Core) RegisterActions(handlers ...func(*Core, Message) Result) + func (c *Core) RegisterQuery(handler QueryHandler) + func (c *Core) RegisterService(name string, instance any) Result + func (c *Core) RegistryOf(name string) Result + func (c *Core) Reloadables() Result + func (c *Core) RemoteAction(name string, ctx Context, opts Options) Result + func (c *Core) Run() + func (c *Core) RunResult() Result + func (c *Core) Service(name string, service ...Service) Result + func (c *Core) ServiceReload(ctx Context) Result + func (c *Core) ServiceShutdown(ctx Context) Result + func (c *Core) ServiceStartup(ctx Context, options any) Result + func (c *Core) Services() []string + func (c *Core) SetEntitlementChecker(checker EntitlementChecker) + func (c *Core) SetUsageRecorder(recorder UsageRecorder) + func (c *Core) Signal() *Signal + func (c *Core) Startables() Result + func (c *Core) Stoppables() Result + func (c *Core) Task(name string, def ...Task) *Task + func (c *Core) Tasks() []string + func (c *Core) WithContext(ctx Context) *Core + type CoreOption func(*Core) Result + func WithBundle(prefix string, other *Core) CoreOption + func WithCli() CoreOption + func WithConfigFile(path string) CoreOption + func WithCrashFile(path string) CoreOption + func WithEnvConfig(prefix string) CoreOption + func WithName(name string, factory func(*Core) Result) CoreOption + func WithOption(key string, value any) CoreOption + func WithOptions(opts Options) CoreOption + func WithReloadOnSIGHUP() CoreOption + func WithService(factory func(*Core) Result) CoreOption + func WithServiceLock() CoreOption + type CrashReport struct + Error string + Meta map[string]string + Stack string + System CrashSystem + Timestamp Time + type CrashSystem struct + Architecture string + OperatingSystem string + Version string + type DB = sql.DB + type Data struct + func (d *Data) Exists() bool + func (d *Data) Extract(path, targetDir string, templateData any) Result + func (d *Data) List(path string) Result + func (d *Data) ListNames(path string) Result + func (d *Data) MountDir(name, dir string) Result + func (d *Data) Mounts() []string + func (d *Data) New(opts Options) Result + func (d *Data) On(name string) *Data + func (d *Data) ReadFile(path string) Result + func (d *Data) ReadString(path string) Result + type Dialer = net.Dialer + type Drive struct + func (d *Drive) Exists() bool + func (d *Drive) Handle() Result + func (d *Drive) New(opts Options) Result + func (d *Drive) On(name string) *Drive + func (d *Drive) Transport() string + type DriveHandle struct + Name string + Options Options + Transport string + type Duration = time.Duration + type Embed struct + func (s *Embed) BaseDirectory() string + func (s *Embed) EmbedFS() embed.FS + func (s *Embed) FS() FS + func (s *Embed) Open(name string) Result + func (s *Embed) ReadDir(name string) Result + func (s *Embed) ReadFile(name string) Result + func (s *Embed) ReadString(name string) Result + func (s *Embed) Sub(subDir string) Result + type EmbedFS = embed.FS + type Entitlement struct + Allowed bool + Limit int + Reason string + Remaining int + Unlimited bool + Used int + func (e Entitlement) NearLimit(threshold float64) bool + func (e Entitlement) UsagePercent() float64 + type EntitlementChecker func(action string, quantity int, ctx Context) Entitlement + type Err struct + Cause error + Code string + Message string + Operation string + func (e *Err) Error() string + func (e *Err) Unwrap() error + type ErrorLog struct + func (el *ErrorLog) Error(err error, op, msg string) Result + func (el *ErrorLog) Must(err error, op, msg string) + func (el *ErrorLog) Warn(err error, op, msg string) Result + type ErrorPanic struct + func (h *ErrorPanic) Recover() + func (h *ErrorPanic) Reports(n int) Result + func (h *ErrorPanic) SafeGo(fn func()) + type ErrorSink interface + Error func(msg string, keyvals ...any) + Warn func(msg string, keyvals ...any) + type ExitOptions struct + Code int + Timeout Duration + type ExtractOptions struct + IgnoreFiles map[string]struct{} + RenameFiles map[string]string + TemplateFilters []string + type F = testing.F + type FS = fs.FS + func DirFS(dir string) FS + type Feature struct + func (f Feature) Disable() + func (f Feature) Enable() + func (f Feature) Enabled() bool + func (f Feature) Name() string + type FileMode = os.FileMode + type Flusher = http.Flusher + type Fs struct + func (m *Fs) Append(p string) Result + func (m *Fs) Create(p string) Result + func (m *Fs) Delete(p string) Result + func (m *Fs) DeleteAll(p string) Result + func (m *Fs) EnsureDir(p string) Result + func (m *Fs) Exists(p string) Result + func (m *Fs) IsDir(p string) Result + func (m *Fs) IsFile(p string) Result + func (m *Fs) List(p string) Result + func (m *Fs) New(root string) *Fs + func (m *Fs) NewUnrestricted() *Fs + func (m *Fs) Open(p string) Result + func (m *Fs) Read(p string) Result + func (m *Fs) ReadStream(path string) Result + func (m *Fs) Rename(oldPath, newPath string) Result + func (m *Fs) Root() string + func (m *Fs) Stat(p string) Result + func (m *Fs) TempDir(prefix string) Result + func (m *Fs) WalkSeq(root string) Seq2[FsEntry, error] + func (m *Fs) WalkSeqSkip(root string, skipNames ...string) Seq2[FsEntry, error] + func (m *Fs) Write(p, content string) Result + func (m *Fs) WriteAtomic(p, content string) Result + func (m *Fs) WriteMode(p, content string, mode FileMode) Result + func (m *Fs) WriteStream(path string) Result + type FsDirEntry = fs.DirEntry + type FsEntry struct + IsDir bool + Mode fs.FileMode + Name string + Path string + type FsFile = fs.File + type FsFileInfo = fs.FileInfo + type FuncMap = template.FuncMap + type Group = user.Group + type HTTPClient = http.Client + type HTTPFileSystem = http.FileSystem + func HTTPFS(fsys FS) HTTPFileSystem + type HTTPServer = http.Server + type HTTPTestRecorder = httptest.ResponseRecorder + func NewHTTPTestRecorder() *HTTPTestRecorder + type HTTPTestServer = httptest.Server + func NewHTTPTestServer(handler Handler) *HTTPTestServer + func NewHTTPTestTLSServer(handler Handler) *HTTPTestServer + type Handler = http.Handler + func HTTPFileServer(root HTTPFileSystem) Handler + func HTTPStripPrefix(prefix string, h Handler) Handler + type HandlerFunc = http.HandlerFunc + type Header = http.Header + type I18n struct + func (i *I18n) AddLocales(mounts ...*Embed) + func (i *I18n) AvailableLanguages() []string + func (i *I18n) Language() string + func (i *I18n) Locales() Result + func (i *I18n) SetLanguage(lang string) Result + func (i *I18n) SetTranslator(t Translator) + func (i *I18n) Translate(messageID string, args ...any) Result + func (i *I18n) Translator() Result + type IP = net.IP + func ParseIP(s string) IP + type IPMask = net.IPMask + type IPNet = net.IPNet + type Ipc struct + type JSONDecoder = json.Decoder + func JSONNewDecoder(r Reader) *JSONDecoder + type JSONDelim = json.Delim + type JSONEncoder = json.Encoder + func JSONNewEncoder(w Writer) *JSONEncoder + type JSONMarshaler = json.Marshaler + type JSONNumber = json.Number + type JSONUnmarshaler = json.Unmarshaler + type Kind = reflect.Kind + type LSPDiagnostic struct + Code string + Message string + Range LSPRange + Severity int + Source string + func LSPComputeDiagnostics(uri string, content []byte) []LSPDiagnostic + type LSPDiagnosticSource func(uri string, content []byte) []LSPDiagnostic + type LSPPosition struct + Character int + Line int + type LSPRange struct + End LSPPosition + Start LSPPosition + type Level int + const LevelDebug + const LevelError + const LevelInfo + const LevelQuiet + const LevelWarn + func (l Level) String() string + type Listener = net.Listener + type LocaleProvider interface + Locales func() *Embed + type Location = time.Location + type Lock struct + Mutex *RWMutex + Name string + func (l *Lock) Lock() + func (l *Lock) RLock() + func (l *Lock) RUnlock() + func (l *Lock) TryLock() Result + func (l *Lock) Unlock() + type Log struct + StyleDebug func(string) string + StyleError func(string) string + StyleInfo func(string) string + StyleSecurity func(string) string + StyleTimestamp func(string) string + StyleWarn func(string) string + func Default() *Log + func NewLog(opts LogOptions) *Log + func (l *Log) Debug(msg string, keyvals ...any) + func (l *Log) Error(msg string, keyvals ...any) + func (l *Log) Info(msg string, keyvals ...any) + func (l *Log) Level() Level + func (l *Log) Security(msg string, keyvals ...any) + func (l *Log) SetLevel(level Level) + func (l *Log) SetOutput(w goio.Writer) + func (l *Log) SetRedactKeys(keys ...string) + func (l *Log) Warn(msg string, keyvals ...any) + type LogErr struct + func NewLogErr(log *Log) *LogErr + func (le *LogErr) Log(err error) + type LogOptions struct + Level Level + Output goio.Writer + RedactKeys []string + Rotation *RotationLogOptions + type LogPanic struct + func NewLogPanic(log *Log) *LogPanic + func (lp *LogPanic) Recover() + type Message any + type Month = time.Month + type MultipartFile = multipart.File + type MultipartFileHeader = multipart.FileHeader + type MultipartForm = multipart.Form + type MultipartReader = multipart.Reader + func NewMultipartReader(r Reader, boundary string) *MultipartReader + type MultipartWriter = multipart.Writer + func NewMultipartWriter(w Writer) *MultipartWriter + type Mutex struct + func (m *Mutex) Lock() + func (m *Mutex) TryLock() Result + func (m *Mutex) Unlock() + type NullBool = sql.NullBool + type NullFloat64 = sql.NullFloat64 + type NullInt64 = sql.NullInt64 + type NullString = sql.NullString + type NullTime = sql.NullTime + type OSFile = os.File + type Once struct + func (o *Once) Do(fn func()) + func (o *Once) Reset() + type Option struct + Key string + Value any + type Options struct + func NewOptions(items ...Option) Options + func (o *Options) Set(key string, value any) + func (o Options) Bool(key string) bool + func (o Options) Duration(key string) Duration + func (o Options) Float64(key string) float64 + func (o Options) Get(key string) Result + func (o Options) Has(key string) bool + func (o Options) Int(key string) int + func (o Options) Items() []Option + func (o Options) Len() int + func (o Options) String(key string) string + type Ordered = cmp.Ordered + type PacketConn = net.PacketConn + type PathWalkDirFunc = WalkDirFunc + type PathWalkFunc = filepath.WalkFunc + type PinnedView struct + func (p *PinnedView) Active() bool + func (p *PinnedView) Bytes() int + func (p *PinnedView) Len() int + func (p *PinnedView) Ptr() unsafe.Pointer + func (p *PinnedView) Release() + type Pinner = runtime.Pinner + type Policy struct + func NewPolicy(rules Options) *Policy + func (p *Policy) Checker() EntitlementChecker + func (p *Policy) Recorder() UsageRecorder + type Pool struct + func (p *Pool[T]) Get() T + func (p *Pool[T]) Len() int + func (p *Pool[T]) Put(s T) + type Process struct + func (p *Process) Exists() bool + func (p *Process) Kill(ctx Context, opts Options) Result + func (p *Process) Run(ctx Context, command string, args ...string) Result + func (p *Process) RunIn(ctx Context, dir string, command string, args ...string) Result + func (p *Process) RunWithEnv(ctx Context, dir string, env []string, command string, args ...string) Result + func (p *Process) Start(ctx Context, opts Options) Result + type Query any + type QueryHandler func(*Core, Query) Result + type RWMutex struct + func (m *RWMutex) Lock() + func (m *RWMutex) RLock() + func (m *RWMutex) RUnlock() + func (m *RWMutex) TryLock() Result + func (m *RWMutex) TryRLock() Result + func (m *RWMutex) Unlock() + type RawMessage = json.RawMessage + type ReadCloser = io.ReadCloser + type ReadWriteCloser = io.ReadWriteCloser + type ReadWriter = io.ReadWriter + type Reader = io.Reader + func LimitReader(r Reader, n int64) Reader + func Stdin() Reader + type Regexp struct + func (r *Regexp) FindAllString(s string, n int) []string + func (r *Regexp) FindString(s string) string + func (r *Regexp) FindStringSubmatch(s string) []string + func (r *Regexp) MatchString(s string) bool + func (r *Regexp) ReplaceAllString(s, repl string) string + func (r *Regexp) Split(s string, n int) []string + func (r *Regexp) String() string + type Registry struct + func NewRegistry[T any]() *Registry[T] + func (r *Registry[T]) Delete(name string) Result + func (r *Registry[T]) Disable(name string) Result + func (r *Registry[T]) Disabled(name string) bool + func (r *Registry[T]) Each(fn func(string, T)) + func (r *Registry[T]) Enable(name string) Result + func (r *Registry[T]) Get(name string) Result + func (r *Registry[T]) GetIncludingDisabled(name string) Result + func (r *Registry[T]) GetOrSet(name string, make func() T) Result + func (r *Registry[T]) Has(name string) bool + func (r *Registry[T]) Len() int + func (r *Registry[T]) List(pattern string) []T + func (r *Registry[T]) Lock() + func (r *Registry[T]) Locked() bool + func (r *Registry[T]) Names() []string + func (r *Registry[T]) Open() + func (r *Registry[T]) Seal() + func (r *Registry[T]) Sealed() bool + func (r *Registry[T]) Set(name string, item T) Result + type Reloadable interface + OnReload func(ctx Context) Result + type Request = http.Request + func NewHTTPTestRequest(method, target string, body Reader) *Request + type Resolver = net.Resolver + type Response = http.Response + type ResponseWriter = http.ResponseWriter + type Result struct + OK bool + Value any + func Arg(index int, args ...any) Result + func Atoi(s string) Result + func Base64Decode(s string) Result + func Base64URLDecode(s string) Result + func Chdir(dir string) Result + func Chmod(p string, mode FileMode) Result + func CliRegister(c *Core) Result + func Copy(dst Writer, src Reader) Result + func CopyN(dst Writer, src Reader, n int64) Result + func Create(p string) Result + func CreateTemp(dir, pattern string) Result + func Executable() Result + func ExecuteTemplate(t *Template, w Writer, data any) Result + func Extract(fsys FS, targetDir string, data any, opts ...ExtractOptions) Result + func Fail(err error) Result + func GeneratePack(pkg ScannedPackage) Result + func GetAsset(group, name string) Result + func GetAssetBytes(group, name string) Result + func Getwd() Result + func HKDF(algo string, secret, salt, info []byte, length int) Result + func HMAC(algo string, key, data []byte) Result + func HTTPGet(url string) Result + func HTTPListenAndServe(addr string, handler Handler) Result + func HTTPPost(url, contentType string, body Reader) Result + func HTTPPostForm(target string, data URLValues) Result + func HexDecode(s string) Result + func Hostname() Result + func JSONMarshal(v any) Result + func JSONMarshalIndent(v any, prefix, indent string) Result + func JSONUnmarshal(data []byte, target any) Result + func JSONUnmarshalString(s string, target any) Result + func LSPServe(ctx Context) Result + func Lstat(p string) Result + func Mkdir(p string, mode FileMode) Result + func MkdirAll(p string, mode FileMode) Result + func MkdirTemp(dir, pattern string) Result + func Mount(fsys FS, basedir string) Result + func MountEmbed(efs embed.FS, basedir string) Result + func NetDial(network, address string) Result + func NetDialTimeout(network, address string, timeout Duration) Result + func NetListen(network, address string) Result + func NetListenPacket(network, address string) Result + func NewHTTPRequest(method, target string, body Reader) Result + func NewHTTPRequestContext(ctx Context, method, target string, body Reader) Result + func NewRuntime(app any) Result + func NewWithFactories(app any, factories map[string]ServiceFactory) Result + func Ok(v any) Result + func Open(p string) Result + func OpenFile(p string, flag int, mode FileMode) Result + func ParseCIDR(s string) Result + func ParseDuration(s string) Result + func ParseInt(s string, base int, bitSize int) Result + func ParseTemplate(name, text string) Result + func ParseTemplateFS(fsys FS, patterns ...string) Result + func ParseTemplateFiles(filenames ...string) Result + func PathAbs(p string) Result + func PathEvalSymlinks(p string) Result + func PathMatch(pattern, name string) Result + func PathRel(base, target string) Result + func PathWalk(root string, fn PathWalkFunc) Result + func PathWalkDir(root string, fn PathWalkDirFunc) Result + func RandRead(b []byte) Result + func RandomBytes(n int) Result + func RandomInt(min, max int) Result + func RandomString(n int) Result + func ReadAll(reader any) Result + func ReadDir(fsys FS, name string) Result + func ReadFSFile(fsys FS, name string) Result + func ReadFile(p string) Result + func Readlink(p string) Result + func Regex(pattern string) Result + func Remove(p string) Result + func RemoveAll(p string) Result + func Rename(oldPath, newPath string) Result + func ResultOf(v any, err error) Result + func SQLOpen(driverName, dataSourceName string) Result + func ScanAssets(filenames []string) Result + func Setenv(key, value string) Result + func Stat(p string) Result + func Sub(fsys FS, dir string) Result + func Symlink(oldPath, newPath string) Result + func TimeParse(layout, value string) Result + func Try(fn func() any) (r Result) + func URLDecode(s string) Result + func URLParse(rawURL string) Result + func Unsetenv(key string) Result + func UserCacheDir() Result + func UserConfigDir() Result + func UserCurrent() Result + func UserGroupLookup(name string) Result + func UserHomeDir() Result + func UserLookup(username string) Result + func UserLookupID(uid string) Result + func ValidateName(name string) Result + func WalkDir(fsys FS, root string, fn WalkDirFunc) Result + func WriteAll(writer any, content string) Result + func WriteFile(p string, data []byte, mode FileMode) Result + func WriteString(w Writer, s string) Result + func (r Result) Bool() bool + func (r Result) Bytes() []byte + func (r Result) Code() string + func (r Result) Duration() Duration + func (r Result) Err() error + func (r Result) Error() string + func (r Result) Float64() float64 + func (r Result) Int() int + func (r Result) Must() any + func (r Result) New(args ...any) Result + func (r Result) Or(fallback any) any + func (r Result) String() string + type Return struct + Err error + Value T + func QueryFor[T any](c *Core, q Query) Return[T] + func ReturnFail[T any](err error) Return[T] + func ReturnFrom[T any](v T, err error) Return[T] + func ReturnOK[T any](v T) Return[T] + func ReturnOf[T any](r Result) Return[T] + func ReturnTry[T any](fn func() T) (r Return[T]) + func (r Return[T]) Code() string + func (r Return[T]) Log(op, msg string) Return[T] + func (r Return[T]) Must() T + func (r Return[T]) OK() bool + func (r Return[T]) Or(fallback T) T + func (r Return[T]) Result() Result + type RotationLogOptions struct + Compress bool + Filename string + MaxAge int + MaxBackups int + MaxSize int + type Row = sql.Row + type Rows = sql.Rows + type Runtime struct + Core *Core + func (r *Runtime) ServiceName() string + func (r *Runtime) ServiceShutdown(ctx Context) Result + func (r *Runtime) ServiceStartup(ctx Context, options any) Result + type SQLResult = sql.Result + type ScannedPackage struct + Assets []AssetRef + BaseDirectory string + Groups []string + PackageName string + type Seeker = io.Seeker + type Seq = iter.Seq[V] + func AllOperations(err error) Seq[string] + type Seq2 = iter.Seq2[K, V] + type ServeMux = http.ServeMux + func NewServeMux() *ServeMux + type Service struct + Instance any + Name string + OnReload func() Result + OnStart func() Result + OnStop func() Result + Optional bool + Options Options + type ServiceFactory func() Result + type ServiceRegistry struct + type ServiceRuntime struct + func NewServiceRuntime[T any](c *Core, opts T) *ServiceRuntime[T] + func (r *ServiceRuntime[T]) Config() *Config + func (r *ServiceRuntime[T]) Core() *Core + func (r *ServiceRuntime[T]) Options() T + type Signal struct + func (s *Signal) Exists() bool + func (s *Signal) Stop() Result + type Startable interface + OnStartup func(ctx Context) Result + type Step struct + Action string + Async bool + Input string + With Options + type Stmt = sql.Stmt + type Stoppable interface + OnShutdown func(ctx Context) Result + type Stream interface + Close func() error + Receive func() ([]byte, error) + Send func(data []byte) error + type StreamFactory func(handle *DriveHandle) (Stream, error) + type StringReader = strings.Reader + type StructField = reflect.StructField + type SyncMap struct + func (m *SyncMap) Clear() + func (m *SyncMap) CompareAndDelete(key, old any) (deleted bool) + func (m *SyncMap) CompareAndSwap(key, old, new any) (swapped bool) + func (m *SyncMap) Delete(key any) + func (m *SyncMap) Load(key any) (value any, ok bool) + func (m *SyncMap) LoadAndDelete(key any) (value any, loaded bool) + func (m *SyncMap) LoadOrStore(key, value any) (actual any, loaded bool) + func (m *SyncMap) Range(f func(key, value any) bool) + func (m *SyncMap) Store(key, value any) + func (m *SyncMap) Swap(key, value any) (previous any, loaded bool) + type SysInfo struct + type T = testing.T + type TB = testing.TB + type TCPAddr = net.TCPAddr + type TCPConn = net.TCPConn + type TCPListener = net.TCPListener + type Table struct + func NewTable(w Writer) *Table + func (t *Table) Flush() Result + func (t *Table) Row(cells ...string) *Table + type Task struct + Description string + Name string + Steps []Step + func (t *Task) Run(ctx Context, c *Core, opts Options) Result + type Template = template.Template + func NewTemplate(name string) *Template + type Ticker = time.Ticker + func NewTicker(d Duration) *Ticker + type Time = time.Time + func Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time + func Unix(sec, nsec int64) Time + func UnixMilli(ms int64) Time + type Timer = time.Timer + func AfterFunc(d Duration, f func()) *Timer + func NewTimer(d Duration) *Timer + type Translator interface + AvailableLanguages func() []string + Language func() string + SetLanguage func(lang string) Result + Translate func(messageID string, args ...any) Result + type Tx = sql.Tx + type Type = reflect.Type + func TypeFor[T any]() Type + func TypeOf(v any) Type + type UDPAddr = net.UDPAddr + type UDPConn = net.UDPConn + type URL = url.URL + type URLValues = url.Values + type UnixAddr = net.UnixAddr + type UnixConn = net.UnixConn + type UnixListener = net.UnixListener + type UsageRecorder func(action string, quantity int, ctx Context) + type User = user.User + type Value = reflect.Value + func MakeFunc(t Type, fn func(args []Value) (results []Value)) Value + func MakeMap(t Type) Value + func MakeMapWithSize(t Type, n int) Value + func MakeSlice(t Type, len, cap int) Value + func NewValue(t Type) Value + func ValueOf(v any) Value + func Zero(t Type) Value + type WaitGroup struct + func (w *WaitGroup) Add(delta int) + func (w *WaitGroup) Done() + func (w *WaitGroup) Go(fn func()) + func (w *WaitGroup) Wait() + type WalkDirFunc = fs.WalkDirFunc + type Weekday = time.Weekday + type WriteCloser = io.WriteCloser + type Writer = io.Writer + var Discard Writer = io.Discard + func Stderr() Writer + func Stdout() Writer