mirror of
https://github.com/1f349/violet.git
synced 2024-11-13 23:11:36 +00:00
14 lines
171 B
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()
|
||
|
}
|
||
|
}
|