1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-09-16 09:06:36 +02:00

rename utils.LOG -> utils.PRINT (#162)

* rename utils.LOG -> utils.PRINT

* rename utils.Logs -> utils.Print
This commit is contained in:
3timeslazy
2018-11-06 03:31:26 +03:00
committed by Tim Voronov
parent 10d0de088b
commit 8bb7941864
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import "github.com/MontFerret/ferret/pkg/runtime/core"
func NewLib() map[string]core.Function {
return map[string]core.Function{
"WAIT": Wait,
"LOG": Log,
"WAIT": Wait,
"PRINT": Print,
}
}

View File

@@ -8,8 +8,8 @@ import (
"github.com/MontFerret/ferret/pkg/runtime/values"
)
// Log writes messages into the system log.
func Log(ctx context.Context, args ...core.Value) (core.Value, error) {
// Print writes messages into the system log.
func Print(ctx context.Context, args ...core.Value) (core.Value, error) {
err := core.ValidateArgs(args, 1, core.MaxArgs)
if err != nil {