violet/utils/fake/fake-compilable.go

12 lines
271 B
Go
Raw Permalink Normal View History

package fake
2023-07-22 01:11:47 +01:00
import "github.com/1f349/violet/utils"
// Compilable implements utils.Compilable and stores if the Compile function
// is called.
type Compilable struct{ Done bool }
func (f *Compilable) Compile() { f.Done = true }
var _ utils.Compilable = &Compilable{}