tools: golang.org/x/tools/internal/telemetry/unit Index | Files

package unit

import "golang.org/x/tools/internal/telemetry/unit"

Package unit holds the definitions for the units you can use in telemetry.

Index

Package Files

unit.go

Constants

const (
    // Dimensionless indicates that a measure has no specified units.
    Dimensionless = "1"
    // Bytes indicates that that a measure is recording number of bytes.
    Bytes = "By"
    // Milliseconds indicates that a measure is recording a duration in milliseconds.
    Milliseconds = "ms"
)

type Unit Uses

type Unit string

Unit is used to specify the units for a given measure. This is can used for display purposes.

Package unit is imported by 6 packages. Updated 2020-02-24. Refresh now. Tools for package owners.