unit: remove explicitly prefixed constants

This commit is contained in:
Dan Kortschak
2019-04-09 10:00:29 +09:30
parent e704b2e393
commit 16be42a8a8
29 changed files with 221 additions and 918 deletions

View File

@@ -16,29 +16,7 @@ import (
// Current represents a current in Amperes.
type Current float64
const (
Yottaampere Current = 1e24
Zettaampere Current = 1e21
Exaampere Current = 1e18
Petaampere Current = 1e15
Teraampere Current = 1e12
Gigaampere Current = 1e9
Megaampere Current = 1e6
Kiloampere Current = 1e3
Hectoampere Current = 1e2
Decaampere Current = 1e1
Ampere Current = 1.0
Deciampere Current = 1e-1
Centiampere Current = 1e-2
Milliampere Current = 1e-3
Microampere Current = 1e-6
Nanoampere Current = 1e-9
Picoampere Current = 1e-12
Femtoampere Current = 1e-15
Attoampere Current = 1e-18
Zeptoampere Current = 1e-21
Yoctoampere Current = 1e-24
)
const Ampere Current = 1
// Unit converts the Current to a *Unit
func (i Current) Unit() *Unit {