14 lines
263 B
Go
14 lines
263 B
Go
package niri
|
|
|
|
import "encoding/json"
|
|
|
|
type KeyboardLayouts struct {
|
|
Names []string `json:"names"`
|
|
CurrentIndex int `json:"current_idx"`
|
|
}
|
|
|
|
func (m KeyboardLayouts) String() string {
|
|
data, _ := json.MarshalIndent(m, "", "\t")
|
|
return string(data)
|
|
}
|