From 1ed1191a9b98c3c7ce76e94ccbf3c706701c674c Mon Sep 17 00:00:00 2001 From: btracey Date: Fri, 14 Jun 2013 16:17:50 -0700 Subject: [PATCH] Remove unit folder from previous error --- unit/length/length.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 unit/length/length.go diff --git a/unit/length/length.go b/unit/length/length.go deleted file mode 100644 index 72098e96..00000000 --- a/unit/length/length.go +++ /dev/null @@ -1,32 +0,0 @@ -package unit - -// Length units - -// Represents a length in meters -type Length float64 - -const ( - Meter Length = 1.0 - Centimeter Length = 0.01 - Foot Length = 0.3048 - Furlong Length = 600 * Foot - Yard Length = 3 * Foot - Mile Length = 5280 * Foot - Inch Length = 1.0 / 12 * Foot - Smoot Length = 67.0 / 12 * Foot - Au Length = 149597870700 - LightYear Length = 9460730472580800 -) - -func (l Length) Unit() *Unit { - return CreateUnit(float64(l), &Dimensions{Length: 1}) -} - -func (l Length) In(l2 Length) float64 { - return float64(l) / float64(l2) -} - -// So it can implement a lengther interface -func (l Length) Length() Length { - return l -}