Files
games/common/elements/v1/core/config.go
2025-09-06 09:32:53 -04:00

18 lines
290 B
Go

package core
import "git.vezzani.net/ben/games/common/elements/v1"
type OptFunc func(*Element)
func Children(children ...elements.Element) OptFunc {
return func(c *Element) {
c.children = children
}
}
func Name(name string) OptFunc {
return func(s *Element) {
s.name = name
}
}