A program without packages

I would like ask you if there’s any way to execute a program in Go that doesn’t import any package. I can’t think of any since you need main, so there’s should be at least main package. Do you have anything else in mind?

package mian

func main() {}

This is valid go, does not import anything and would execute. Does nothing usefull though…

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.