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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user