infojson

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	X float64  `json:"x"`
	Y float64  `json:"y"`
	W *float64 `json:"w"`
	H *float64 `json:"h"`
}

type Keyboard

type Keyboard struct {
	Name    string  `json:"keyboard_name"`
	Layouts Layouts `json:"layouts"`
}

type Layout

type Layout struct {
	Layout []Key `json:"layout"`
}

type Layouts

type Layouts map[string]Layout

func FromFile

func FromFile(name, path string) (Layouts, error)

func FromName

func FromName(name string) (Layouts, error)

Jump to

Keyboard shortcuts

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