mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
16 lines
310 B
Go
16 lines
310 B
Go
package literals
|
|
|
|
import (
|
|
"context"
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
"github.com/MontFerret/ferret/pkg/runtime/values"
|
|
)
|
|
|
|
type noneLiteral struct{}
|
|
|
|
var None = &noneLiteral{}
|
|
|
|
func (l noneLiteral) Exec(ctx context.Context, scope *core.Scope) (core.Value, error) {
|
|
return values.None, nil
|
|
}
|