violet/utils/multi-compilable.go

14 lines
171 B
Go

package utils
type Compilable interface {
Compile()
}
type MultiCompilable []Compilable
func (m MultiCompilable) Compile() {
for _, i := range m {
i.Compile()
}
}