Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRodrigo Valladares
9,708 Pointswhy the console give me that treehouse # command-line-arguments
I copy exactly that shows on the video and don't work
1 Answer
Shanshan Chen
17,981 PointsWhat are the messages after the #command-line-argument? Do they look like something below?
command-line-arguments
./temp.go:9:6: func main must have no arguments and no return values
Something is missing in your main function. Make sure it looks like this:
func main() {
roundedUp := math.Ceil(myNumber)
roundedDown := math.Floor(myNumber)
fmt.Println(roundedUp, roundedDown)
}