Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cant using one parameter. #2

Open
TapXWorld opened this issue Feb 22, 2018 · 2 comments
Open

i cant using one parameter. #2

TapXWorld opened this issue Feb 22, 2018 · 2 comments

Comments

@TapXWorld
Copy link

TapXWorld commented Feb 22, 2018

`package main
import (
"fmt"
"github.com/scottkiss/grtm"
"time"
)
func main() {
gm := grtm.NewGrManager()

gm.NewGoroutine("func", test, "hello")

time.Sleep(time.Second * 5000)

}

func test(str string) {
fmt.Println(str)
}`

@TapXWorld
Copy link
Author

GOROOT=D:\Go #gosetup
GOPATH=D:\GOPATH #gosetup
D:\Go\bin\go.exe build -i -o C:\Users\whoami\AppData\Local\Temp___go_build_Test_go.exe D:/GOPATH/src/pageThread/Test.go #gosetup
"D:\Program Files\JetBrains\GoLand 2017.3\bin\runnerw.exe" C:\Users\whoami\AppData\Local\Temp___go_build_Test_go.exe #gosetup
panic: interface conversion: interface {} is func(string), not func(interface {})

goroutine 18 [running]:
github.com/scottkiss/grtm.(*GrManager).NewGoroutine.func1(0xc042072018, 0x4ecb4e, 0x4, 0x4ecb4e, 0x4, 0x4cb1c0, 0x4f4d58, 0xc0420481c0, 0x1, 0x1)
D:/GOPATH/src/github.com/scottkiss/grtm/grmanager.go:73 +0x20a
created by github.com/scottkiss/grtm.(*GrManager).NewGoroutine
D:/GOPATH/src/github.com/scottkiss/grtm/grmanager.go:64 +0xac

@PearceDuan
Copy link

I met same problem... do you resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants