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

umonoproject

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package umonoproject detects a Umono project by its umono.json.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotUmonoProject = errors.New("this directory is not a Umono project")
	ErrNoThemeSupport  = errors.New("this Umono version does not support themes, v0.9 or later is required")
)

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	MinCLIVersion   string `json:"min_cli_version"`
	ThemeAPICurrent *int   `json:"theme_api_current"`
	ThemeAPIMin     *int   `json:"theme_api_min"`
}

Manifest is umono.json at the root of a Umono project. Every release archive has it, and upgrade keeps it current. The theme fields are nil in a project before v0.9.

func Detect

func Detect(dir string) (Manifest, error)

Detect reads umono.json at the root dir. A missing file, or one that is not a JSON object, means dir is not a Umono project. The binary's name is not used, and parent directories are not searched.

func (Manifest) ThemeAPI

func (m Manifest) ThemeAPI() (min, current int, err error)

ThemeAPI returns the Theme API range of the project's Umono.

Jump to

Keyboard shortcuts

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