how to create a package in golang using online gdb?

+2 votes
asked Jun 5 by Salma Mohamed (140 points)

I tried creating a package in Golang by creating a new file and named it circle.go 

to import it I used the import "circle" 

but I got this error 

can't load package: package main: found packages main (main.go) and circle (circle.go) in /home

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.