initial commit
This commit is contained in:
13
model_keyboard_layout.go
Normal file
13
model_keyboard_layout.go
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user