1
0
Fork 0
duckycode/pkg/lang/lang.go
2021-01-14 09:19:40 +01:00

21 lines
293 B
Go

// Copyright (C) 2019 ston1th
package lang
import "errors"
var L = make(map[string]Lang)
type Lang map[string]Key
type Key struct {
Key byte
Mod byte
}
func Exists(l string) error {
if _, ok := L[l]; !ok {
return errors.New("language '" + l + "' is not supported")
}
return nil
}