MCPcopy Create free account
hub / github.com/evcc-io/evcc / WithDuration

Function WithDuration

util/encode/encode.go:33–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func WithDuration() EncoderOption {
34 return func(e *encoder) {
35 e.withDuration = true
36 }
37}
38
39// Encode provides a consumer-friendly default encoding for any type
40func (e encoder) Encode(v any) any {

Callers 3

socket_helper.goFile · 0.92
stateHandlerFunction · 0.92
TestEncodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEncodeFunction · 0.68