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

cmd

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Column

type Column struct {
	Col []Widgets `mapstructure:"col"`
}

Column is constituted of widgets

type Feedly

type Feedly struct {
	Address string `mapstructure:"address"`
}

type General

type General struct {
	Keys    map[string]string `mapstructure:"keys"`
	Refresh int64             `mapstructure:"refresh"`
	Editor  string            `mapstructure:"editor"`
}

type Git

type Git struct {
	Path string `mapstructure:"path"`
}

type Github

type Github struct {
	Token      string `mapstructure:"token"`
	Owner      string `mapstructure:"owner"`
	Repository string `mapstructure:"repository"`
}

type GoogleAnalytics

type GoogleAnalytics struct {
	Keyfile    string `mapstructure:"keyfile"`
	PropertyID string `mapstructure:"property_id"`
	// ViewID was used by Universal Analytics, shut down by Google in favor of GA4.
	ViewID string `mapstructure:"view_id"`
}

type Monitor

type Monitor struct {
	Address string `mapstructure:"address"`
}

type Project

type Project struct {
	Name        string                       `mapstructure:"name"`
	NameOptions map[string]string            `mapstructure:"name_options"`
	Services    Services                     `mapstructure:"services"`
	Themes      map[string]map[string]string `mapstructure:"themes"`
	Widgets     []Row                        `mapstructure:"widgets"`
}

func (Project) OrderWidgets

func (p Project) OrderWidgets() ([][][]internal.Widget, [][]string)

OrderWidgets add the widgets to a three dimensional slice. First dimension: index of the rows (ir or indexRows). Second dimension: index of the columns (ic or indexColumn). Third dimension: index of the widget.

type RemoteHost

type RemoteHost struct {
	Username   string `mapstructure:"username"`
	Address    string `mapstructure:"address"`
	KnownHosts string `mapstructure:"known_hosts"`
}

type Row

type Row struct {
	Row []Column `mapstructure:"row"`
}

Row is constituted of columns

type SearchConsole

type SearchConsole struct {
	Keyfile string `mapstructure:"keyfile"`
	Address string `mapstructure:"address"`
}

type Services

type Services struct {
	GoogleAnalytics     GoogleAnalytics `mapstructure:"google_analytics"`
	GoogleSearchConsole SearchConsole   `mapstructure:"google_search_console"`
	Monitor             Monitor         `mapstructure:"monitor"`
	Github              Github          `mapstructure:"github"`
	Feedly              Feedly          `mapstructure:"feedly"`
	Git                 Git             `mapstructure:"git"`
	RemoteHost          RemoteHost      `mapstructure:"remote_host"`
}

type Widgets

type Widgets struct {
	Size     string            `mapstructure:"size"`
	Elements []internal.Widget `mapstructure:"elements"`
}

Jump to

Keyboard shortcuts

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