Merge branch 'develop'

This commit is contained in:
Andy Pan 2018-12-03 11:23:45 +08:00
commit 0aef89b997
3 changed files with 6 additions and 6 deletions

View File

@ -52,14 +52,14 @@ import (
var sum int32
func myFunc(i interface{}) error {
func myFunc(i interface{}) {
n := i.(int32)
atomic.AddInt32(&sum, n)
fmt.Printf("run with %d\n", n)
return nil
}
func demoFunc() error {
func demoFunc() {
time.Sleep(10 * time.Millisecond)
fmt.Println("Hello World!")
return nil

View File

@ -51,14 +51,14 @@ import (
var sum int32
func myFunc(i interface{}) error {
func myFunc(i interface{}) {
n := i.(int32)
atomic.AddInt32(&sum, n)
fmt.Printf("run with %d\n", n)
return nil
}
func demoFunc() error {
func demoFunc() {
time.Sleep(10 * time.Millisecond)
fmt.Println("Hello World!")
return nil

View File

@ -33,14 +33,14 @@ import (
var sum int32
func myFunc(i interface{}) error {
func myFunc(i interface{}) {
n := i.(int32)
atomic.AddInt32(&sum, n)
fmt.Printf("run with %d\n", n)
return nil
}
func demoFunc() error {
func demoFunc() {
time.Sleep(10 * time.Millisecond)
fmt.Println("Hello World!")
return nil