diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-01-17 00:56:56 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-01-17 00:56:56 -0800 |
| commit | b0c7df0c3b12f4ecd7ff0b317eeb2dd463ca9596 (patch) | |
| tree | dc3c8c86309de659d55ebd31a770ba3b27bb191a /weed-fs/src/pkg/util/parse.go | |
| parent | ca9056d673daa9e49e83339ba0fc4b6b03bd9fef (diff) | |
| download | seaweedfs-b0c7df0c3b12f4ecd7ff0b317eeb2dd463ca9596.tar.xz seaweedfs-b0c7df0c3b12f4ecd7ff0b317eeb2dd463ca9596.zip | |
go fmt for all source codes
Diffstat (limited to 'weed-fs/src/pkg/util/parse.go')
| -rw-r--r-- | weed-fs/src/pkg/util/parse.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/weed-fs/src/pkg/util/parse.go b/weed-fs/src/pkg/util/parse.go index 6a4350e72..930da9522 100644 --- a/weed-fs/src/pkg/util/parse.go +++ b/weed-fs/src/pkg/util/parse.go @@ -1,16 +1,16 @@ package util import ( - "strconv" + "strconv" ) -func ParseInt(text string, defaultValue int) int{ - count, parseError := strconv.ParseUint(text,10,64) - if parseError!=nil { - if len(text)>0{ - return 0 - } - return defaultValue - } - return int(count) +func ParseInt(text string, defaultValue int) int { + count, parseError := strconv.ParseUint(text, 10, 64) + if parseError != nil { + if len(text) > 0 { + return 0 + } + return defaultValue + } + return int(count) } |
