I am Biginner But I have Error import cycle not allowed in Hello word program

560 views
Skip to first unread message

sidhaye...@gmail.com

unread,
Mar 6, 2016, 10:15:27 AM3/6/16
to golang-nuts
My Code is as follows :
package main


import "fmt"

func main() {
    fmt.Printf("Hello, Wordl\n")
}

when go install the imprt cycle not allowed appears with following details
package:
imports runtime
imports runtime/internal/atomic
imports unsafe
imports runtime

I search for solution. But I donot know how to get rid of this error.
please help me.

Arvind Sidhaye
Message has been deleted

Roberto Zanotto

unread,
Mar 6, 2016, 12:45:52 PM3/6/16
to golang-nuts
Don't know why the error is coming up, but still, if you are a beginner...

Instructions for installing Go are here:

Assuming you did everything correctly, follow this guide next, which explains where you should put Go code,
how to test and run it, etc:
also available as 5-min screencast https://www.youtube.com/watch?v=XCsL89YtqCs

You probably want to test, build or run your hello world program, instead of installing it.

Let us know how it goes.
Reply all
Reply to author
Forward
0 new messages