chartzoom

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 10 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 chartzoom is the example plugin of Gx: one plugin value with each hook of the plugin API (REQ-PLG-01). A project gives it to the gx command in its cmd/gx/main.go:

os.Exit(gxcli.Main(os.Args[1:], gxcli.WithPlugins(chartzoom.Plugin(chartzoom.Options{}))))

Read each method as the pattern for one hook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Levels

func Levels(root string) ([]string, error)

Levels returns each zoom level that a .gx file below root uses, in the order of the files.

func Plugin

func Plugin(opt Options) gxcli.Plugin

Plugin returns the plugin for a project.

Types

type Options

type Options struct {
	// Registry is the URL or the directory of the component registry of
	// the plugin. Empty adds no registry.
	Registry string
}

Options are the settings of the plugin for one project.

Jump to

Keyboard shortcuts

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