1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-19 21:28:32 +02:00

19 lines
303 B
Go
Raw Normal View History

package base
import (
"fmt"
"github.com/MontFerret/ferret/pkg/runtime/core"
"github.com/MontFerret/ferret/pkg/runtime/values"
)
func FormatValue(val core.Value) string {
valStr := val.String()
if val == values.None {
valStr = "none"
}
return fmt.Sprintf("[%s] '%s'", val.Type(), valStr)
}