1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-03 00:46:51 +02:00
Files
ferret/pkg/drivers/cdp/eval/arguments.go

19 lines
343 B
Go
Raw Normal View History

package eval
import (
"github.com/mafredri/cdp/protocol/runtime"
"github.com/rs/zerolog"
)
type FunctionArguments []runtime.CallArgument
func (args FunctionArguments) MarshalZerologArray(a *zerolog.Array) {
for _, arg := range args {
if arg.ObjectID != nil {
a.Str(string(*arg.ObjectID))
} else {
a.RawJSON(arg.Value)
}
}
}