Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Toby Yan <me@tobyan.com>
  • Loading branch information
toby1991 committed May 14, 2019
1 parent 9dfdb2c commit c7baba0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/migration/kernel.go
@@ -1,5 +1,5 @@
package migration

func Initialize() {

}
2 changes: 1 addition & 1 deletion database/migration/migration_utils.go
Expand Up @@ -82,7 +82,7 @@ func (mu *MigrationUtils) errorRollback() {
func (mu *MigrationUtils) Migrate() {

defer mu.errorRollback()

m.Transaction(func(h *m.Helper) {
mu.SetTX(h.DB())
batch := mu.currentBatch() + 1
Expand Down
2 changes: 1 addition & 1 deletion model/types/bigfloat/bigfloat_test.go
Expand Up @@ -157,7 +157,7 @@ func TestBigFloat_Round(t *testing.T) {
func TestBigFloat_Convert(t *testing.T) {
//a := big.Float{}
a, _, _ := big.ParseFloat("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.12345678901234567890123456789012345678901234567890123456789012345678901234567890", 10, AutoPrec, big.ToNearestEven)

log.Println(a.Prec())
log.Println(a.Text('f', 1024))
b := BigFloat{}
Expand Down
2 changes: 1 addition & 1 deletion model/types/null/null.go
Expand Up @@ -15,7 +15,7 @@ var nullTime time.Time = time.Unix(0, 0)
const nullNumber = 0
const nullStringNumber = "0"

var nullMapStringInterface map[string]interface{} = map[string]interface{}{nullString: nullNumber,}
var nullMapStringInterface map[string]interface{} = map[string]interface{}{nullString: nullNumber}
var nullFloat32 float32 = nullNumber
var nullFloat64 float64 = nullNumber
var nullInt int = nullNumber
Expand Down

0 comments on commit c7baba0

Please sign in to comment.