config

package
v0.0.0-...-023f855 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	//name string
	//macros []Macro
	Name   string  `toml:"name"`
	Macros []Macro `toml:"macros"`
}

type Applications

type Applications struct {
	// applications []Application
	Applications []Application `toml:"applications"`
	Psid         int           `toml:"psid"`
}

func ReadApplicationConfig

func ReadApplicationConfig(f string) Applications

type Command

type Command struct {
	//type string
	//value string
	Type   string `toml:"type"`
	Output string `toml:"output"`
	Input  string `toml:"input"`
	Value  string `toml:"value"`
}

type Config

type Config struct {
	Stopkeys       []string `toml:"stopkeys"`
	Macrofilepaths []string `toml:"macrofilepaths"`
}

func ReadConfig

func ReadConfig(f string) Config

設定ファイルの読み込み

type Macro

type Macro struct {
	//label string
	//hotkey []string
	//commands []string
	Label     string    `toml:"label"`
	Hotkey    []string  `toml:"hotkey"`
	Active    bool      `toml:"active"`
	Activated bool      `toml:"activated"`
	Commands  []Command `toml:"commands"`
}

Jump to

Keyboard shortcuts

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