Merge pull request #39 from julianespinel/new-formater/remove-println
remove fmt.Println in format.go
This commit is contained in:
commit
eaa44e594d
@ -1,8 +1,6 @@
|
|||||||
package xls
|
package xls
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
formatter "github.com/extrame/xls/format"
|
formatter "github.com/extrame/xls/format"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -17,6 +15,5 @@ type format struct {
|
|||||||
func (f *format) Format(val float64, date1904 bool) string {
|
func (f *format) Format(val float64, date1904 bool) string {
|
||||||
_, tokens := formatter.Lexer(f.str)
|
_, tokens := formatter.Lexer(f.str)
|
||||||
ds := formatter.Parse(tokens)
|
ds := formatter.Parse(tokens)
|
||||||
fmt.Println("=>", val)
|
|
||||||
return ds.Format(val, date1904)
|
return ds.Format(val, date1904)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user