Compare commits
2 Commits
element-re
...
3b4cf9ddf6
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b4cf9ddf6 | |||
|
99675e874b
|
3
common/elements/v1/tables/config.go
Normal file
3
common/elements/v1/tables/config.go
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
package tables
|
||||||
|
|
||||||
|
type OptFunc func(*Table)
|
||||||
19
common/elements/v1/tables/table.go
Normal file
19
common/elements/v1/tables/table.go
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user