2 Commits

2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
package tables
type OptFunc func(*Table)

View File

@@ -0,0 +1,19 @@
package tables
import (
"git.vezzani.net/ben/games/common/elements/v1/core"
)
type Table struct {
core.Element
}
func New(ops ...OptFunc) *Table {
t := &Table{}
for i := range ops {
ops[i](t)
}
return t
}