functional simple api
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user