Sending image

This commit is contained in:
Andrzej Ressel
2017-03-23 21:53:54 +01:00
parent 5f3b7eaa45
commit 1bf982439b
5 changed files with 107 additions and 32 deletions
+9
View File
@@ -106,6 +106,15 @@ func (f Float) String() string {
return fmt.Sprintf("%1.3f", f.Float64)
}
// FullString returns float as string in full precision
func (f Float) FullString() string {
if !f.Valid {
return "null"
}
return fmt.Sprintf("%f", f.Float64)
}
// SetValid changes this Float's value and also sets it to be non-null.
func (f *Float) SetValid(n float64) {
f.Float64 = n