Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
func
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
40
func
(e encoder) Encode(v any) any {
Callers
3
socket_helper.go
File · 0.92
stateHandler
Function · 0.92
TestEncode
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestEncode
Function · 0.68