violet/utils/multi-compilable.go

14 lines
171 B
Go
Raw Normal View History

2023-04-21 03:21:46 +01:00
package utils
type Compilable interface {
Compile()
}
type MultiCompilable []Compilable
func (m MultiCompilable) Compile() {
for _, i := range m {
i.Compile()
}
}