gore: github.com/motemen/gore Index | Files | Directories

package gore

import "github.com/motemen/gore"

Index

Package Files

command_name.go commands.go complete.go errfilter.go gomod.go gore.go liner.go log.go node.go nodebug.go option.go quickfix.go session.go terminal_unix.go utils.go

Constants

const Version = "0.5.0"

Version of gore.

type Error Uses

type Error string

Error ...

const (
    ErrContinue Error = "<continue input>"
    ErrQuit     Error = "<quit session>"
    ErrCmdRun   Error = "<command failed>"
)

Errors

func (Error) Error Uses

func (e Error) Error() string

type Gore Uses

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

Gore ...

func New Uses

func New(opts ...Option) *Gore

New Gore

func (*Gore) Run Uses

func (g *Gore) Run() error

Run ...

type Option Uses

type Option func(*Gore)

Option for Gore

func AutoImport Uses

func AutoImport(autoImport bool) Option

AutoImport option

func ErrWriter Uses

func ErrWriter(errWriter io.Writer) Option

ErrWriter option

func ExtFiles Uses

func ExtFiles(extFiles string) Option

ExtFiles option

func OutWriter Uses

func OutWriter(outWriter io.Writer) Option

OutWriter option

func PackageName Uses

func PackageName(packageName string) Option

PackageName option

type Session Uses

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

Session ...

func NewSession Uses

func NewSession(stdout, stderr io.Writer) (*Session, error)

NewSession creates a new Session.

func (*Session) Clear Uses

func (s *Session) Clear() error

Clear the temporary directory.

func (*Session) Eval Uses

func (s *Session) Eval(in string) error

Eval the input.

func (*Session) Run Uses

func (s *Session) Run() error

Run the session.

Directories

PathSynopsis
cli
gocode

Package gore imports 35 packages (graph) and is imported by 1 packages. Updated 2020-05-08. Refresh now. Tools for package owners.