Help us shape the future of Go! Take the 2026 Go Developer Survey

project

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package project manages the folders aibox keeps for each project.

Index

Constants

This section is empty.

Variables

View Source
var ErrRelativePath = errors.New("project path is not absolute")

ErrRelativePath is returned for a project path that is not absolute.

Functions

func Escape

func Escape(path string) string

Escape turns a project path into a folder name.

Types

type Project

type Project struct {
	Dir        string
	Home       string
	Config     string
	Log        string
	ConsoleLog string
	State      string
}

Project is the folder aibox keeps for one project. Dir is that folder. Home is the home folder of the VM, Config the config file, Log the log of the proxy, ConsoleLog the console of the last run of the VM and State the disk the VM keeps its installed tools and caches on. Home is shared into the VM and State is its second disk.

func Open

func Open(base, path string) (Project, error)

Open returns the folders for the project at path below base and creates them if they are missing.

Jump to

Keyboard shortcuts

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