codex

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Example
cwd := must.NoErrorV(os.Getwd())
entry := filepath.Join(cwd, "..", "testdata", "codex")

ctx := genx.NewContext(&genx.Args{
	Entrypoint: []string{entry},
})
must.NoError(ctx.Execute(context.Background(), genx.Get()...))

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Span added in v0.1.8

func Span() func() time.Duration

Types

type Error

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

func (*Error) CodeMessageCases

func (e *Error) CodeMessageCases(ctx context.Context) s.Snippet

CodeMessageCases generates code snippet for error message cases

func (*Error) IsValid

func (e *Error) IsValid() bool

type Errors

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

func NewErrors

func NewErrors(g genx.Context) *Errors

func (*Errors) Resolve

func (es *Errors) Resolve(t types.Type) (*Error, bool)

Jump to

Keyboard shortcuts

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