Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ MarshalJSON
Method
MarshalJSON
model/value_histogram.go:29–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
}
28
29
func
(v FloatString) MarshalJSON() ([]byte, error) {
30
return
json.Marshal(v.String())
31
}
32
33
func
(v *FloatString) UnmarshalJSON(b []byte) error {
34
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