Compare commits
1 Commits
main
...
element-re
| Author | SHA1 | Date | |
|---|---|---|---|
|
8e7db331a7
|
@@ -1,3 +0,0 @@
|
|||||||
package tables
|
|
||||||
|
|
||||||
type OptFunc func(*Table)
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user