From c80af4dd6ec12c59c7d7f9e2c3f5217523a892fb Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 29 Jan 2019 20:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=BB=20gofmt=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_test.go | 17 ++++++++--------- examples/main.go | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ants_test.go b/ants_test.go index d637c34..34e8bd5 100644 --- a/ants_test.go +++ b/ants_test.go @@ -34,14 +34,14 @@ import ( const ( _ = 1 << (10 * iota) - KiB // 1024 - MiB // 1048576 - GiB // 1073741824 - TiB // 1099511627776 (超过了int32的范围) - PiB // 1125899906842624 - EiB // 1152921504606846976 - ZiB // 1180591620717411303424 (超过了int64的范围) - YiB // 1208925819614629174706176 + KiB // 1024 + MiB // 1048576 + GiB // 1073741824 + TiB // 1099511627776 (超过了int32的范围) + PiB // 1125899906842624 + EiB // 1152921504606846976 + ZiB // 1180591620717411303424 (超过了int64的范围) + YiB // 1208925819614629174706176 ) const ( @@ -304,4 +304,3 @@ func TestRestCodeCoverage(t *testing.T) { p.Tune(AntsSize) t.Logf("pool with func, after tuning capacity, capacity:%d, running:%d", p.Cap(), p.Running()) } - diff --git a/examples/main.go b/examples/main.go index 8edac1c..0d28879 100644 --- a/examples/main.go +++ b/examples/main.go @@ -77,4 +77,4 @@ func main() { wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running()) fmt.Printf("finish all tasks, result is %d\n", sum) -} \ No newline at end of file +}