-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d04a0c
commit babc953
Showing
13 changed files
with
72 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package msg | ||
|
||
func Data() string { | ||
return "data" | ||
} | ||
|
||
func Precision() string { | ||
return "precision" | ||
} | ||
var ( | ||
Data = "data" | ||
Mod = "mod" | ||
Precision = "precision" | ||
Quo = "quo" | ||
Rem = "rem" | ||
TimeZone = "time zone" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,42 @@ | ||
package msg | ||
|
||
import "fmt" | ||
import ( | ||
"fmt" | ||
"math/big" | ||
) | ||
|
||
func PrecisionSet(p uint) string { | ||
return fmt.Sprintf("precision set to %v", p) | ||
func Copied() string { | ||
return "copied" | ||
} | ||
|
||
func Inexact() string { | ||
return "inexact" | ||
} | ||
|
||
func LocalTimeZoneSet(z string) string { | ||
return fmt.Sprintf("local time zone is now %v", z) | ||
} | ||
|
||
func NowSet(dt string) string { | ||
return fmt.Sprintf("now set to %v", Quote(dt)) | ||
} | ||
|
||
func PrecisionSet(p uint) string { | ||
return fmt.Sprintf("precision set to %v", p) | ||
} | ||
|
||
func RoundingModeSet(m string) string { | ||
return fmt.Sprintf("rounding mode set to %v", m) | ||
} | ||
|
||
func Reset() string { | ||
return "reset" | ||
} | ||
|
||
func SeedSet(s *big.Int) string { | ||
return fmt.Sprintf("seed set to %v", s) | ||
} | ||
|
||
func Stored() string { | ||
return "stored" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package msg | ||
|
||
var ( | ||
Hours = "h" | ||
Meters = "m" | ||
Minutes = "m" | ||
Seconds = "s" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters