devfeat

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package devfeat holds the core's development features: window placement across `tan dev` restarts (windowstate.go) and the whole-app automation channel (automation.go, docs/automation.md). They are only built with -tags tango_dev; production builds, the default, get the empty implementations of release.go.

Package tango calls AttachWindowState and AttachAutomation for every new App. This package cannot import package tango (tango imports it): it uses the App's exported methods through the App interface and reaches core internals through the hooks of package internal/corehook, which package tango sets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachAutomation

func AttachAutomation(App)

AttachAutomation does nothing in release builds: the automation control channel (automation.go, docs/automation.md) is a development feature and TANGO_AUTOMATION is ignored.

func AttachWindowState

func AttachWindowState(App)

AttachWindowState does nothing in release builds: restoring window placement across restarts is a `tan dev` feature (windowstate.go).

Types

type App

type App interface {
	OnReady(fn func())
	OnLifecycle(fn func(platform.LifecycleEvent))
	Backend() platform.Backend
	Quit()
}

App is the part of *tango.App's exported API the development features use. The value passed to the Attach functions must be a *tango.App: the corehook hooks type-assert it.

Jump to

Keyboard shortcuts

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