functional simple api

This commit is contained in:
2024-08-23 16:39:20 -05:00
parent f9354196dd
commit ae4f12c159
18 changed files with 234 additions and 216 deletions

View File

@@ -3,17 +3,17 @@ package nkode
import (
"errors"
"fmt"
"go-nkode/core/model"
m "go-nkode/core/model"
"go-nkode/hashset"
"go-nkode/util"
)
type UserInterface struct {
IdxInterface []int
KeypadSize model.KeypadSize
IdxInterface m.IdxInterface
KeypadSize m.KeypadSize
}
func NewUserInterface(keypadSize model.KeypadSize) (*UserInterface, error) {
func NewUserInterface(keypadSize m.KeypadSize) (*UserInterface, error) {
idxInterface := util.IdentityArray(keypadSize.TotalAttrs())
userInterface := UserInterface{
IdxInterface: idxInterface,