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

releasechannel

package
v0.53.14 Latest Latest
Warning

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

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

Documentation

Overview

Package releasechannel stores which release channel the user follows.

The choice is a single word in ~/.stackkits/channel so the shell installer and the CLI read the same file. Stable is the default; preview ("Nightly") is an explicit opt-in (CI-CD-PLATFORM-STANDARD 4.6.2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(dir string, channel Channel) error

Write stores the channel atomically.

Types

type Channel

type Channel string

Channel is a user-selectable release channel.

const (
	Stable  Channel = "stable"
	Preview Channel = "preview"

	// FileName is the channel file inside the user's ~/.stackkits directory.
	FileName = "channel"
)

func Parse

func Parse(value string) (Channel, error)

Parse accepts exactly "stable" or "preview". Anything else fails closed.

func Read

func Read(dir string) (Channel, error)

Read returns the stored channel, stable when none was ever chosen. A file with any other content is an error rather than a silent stable.

func (Channel) Label

func (channel Channel) Label() string

Label is the interface name of the channel.

Jump to

Keyboard shortcuts

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