Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ MarshalJSON
Method
MarshalJSON
model/value_histogram.go:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
func
(v FloatString) MarshalJSON() ([]byte, error) {
31
return
json.Marshal(v.String())
32
}
33
34
func
(v *FloatString) UnmarshalJSON(b []byte) error {
35
if
len(b) < 2 || b[0] !=
'"'
|| b[len(b)-1] !=
'"'
{
Callers
nothing calls this directly
Calls
1
String
Method · 0.95
Tested by
no test coverage detected