github.com/MontFerret/ferret@v0.18.0/pkg/drivers/cdp/eval/arguments.go (about)

     1  package eval
     2  
     3  import (
     4  	"github.com/mafredri/cdp/protocol/runtime"
     5  	"github.com/rs/zerolog"
     6  )
     7  
     8  type FunctionArguments []runtime.CallArgument
     9  
    10  func (args FunctionArguments) MarshalZerologArray(a *zerolog.Array) {
    11  	for _, arg := range args {
    12  		if arg.ObjectID != nil {
    13  			a.Str(string(*arg.ObjectID))
    14  		} else {
    15  			a.RawJSON(arg.Value)
    16  		}
    17  	}
    18  }