mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
373ab34492
Avoids: ```console package runtime/metrics is not in GOROOT ``` Fixes #3705
33 lines
496 B
Go
33 lines
496 B
Go
// Package metrics is a dummy package that is not yet implemented.
|
|
|
|
package metrics
|
|
|
|
type Description struct{}
|
|
|
|
func All() []Description {
|
|
return nil
|
|
}
|
|
|
|
type Float64Histogram struct{}
|
|
|
|
type Sample struct{}
|
|
|
|
func Read(m []Sample) {}
|
|
|
|
type Value struct{}
|
|
|
|
func (v Value) Float64() float64 {
|
|
return 0
|
|
}
|
|
func (v Value) Float64Histogram() *Float64Histogram {
|
|
return nil
|
|
}
|
|
func (v Value) Kind() ValueKind {
|
|
return ValueKind{}
|
|
}
|
|
func (v Value) Uint64() uint64 {
|
|
return 0
|
|
}
|
|
|
|
type ValueKind struct{}
|