error help

59 views
Skip to first unread message

Sree lekshmi MG

unread,
Jul 12, 2021, 2:48:46 AM7/12/21
to golang-nuts
panic: dial tcp [::1]:8000: connectex: No connection could be made because the target machine actively refused it.   

goroutine 1 [running]:
bookCRUD/models.SetupDB(0xc000045f78)
        C:/Users/user/go/src/toDoGolang-master/bookCRUD/models/setup.go:21 +0x259
main.main()
        C:/Users/user/go/src/toDoGolang-master/bookCRUD/main.go:10 +0x2d
exit status 2


 I got this type of error can anyone help me

Anderson Queiroz

unread,
Jul 12, 2021, 3:16:56 AM7/12/21
to golang-nuts
Could you be more specific about what you're doing, which library you're using? For the error message looks like whatever you're trying to connect to is refusing the connection.
Only with this error and stacktrace is really difficult to understand what is happening.
Reply all
Reply to author
Forward
0 new messages