Skip to Content

gofasta console

Launches yaegi  (a Go interpreter) in the current project directory for interactive exploration of your application code.

Usage

gofasta console

This command takes no flags.

Prerequisites

Yaegi must be installed:

go install github.com/traefik/yaegi/cmd/yaegi@latest

Examples

Start the REPL:

gofasta console

Once inside, you can import and test your project’s packages interactively:

> import "myapp/app/models" > u := models.User{FirstName: "Alice"} > u.FirstName "Alice"
Last updated on