Oliver Leaver-Smith, better known as ols, is a distinguished technologist whose topics of expertise include OpenBSD, automation, chaos and resilience engineering, and Nerf warfare.
Location
Sheffield, UK
Work
Senior Platform Engineer at Sky Betting and Gaming
But remember, according to the documentation print() and println() are built-in functions for bootstrapping and not guaranteed to stay in the language.
Oliver Leaver-Smith, better known as ols, is a distinguished technologist whose topics of expertise include OpenBSD, automation, chaos and resilience engineering, and Nerf warfare.
Location
Sheffield, UK
Work
Senior Platform Engineer at Sky Betting and Gaming
Yes you are correct. If we want to be pedantic I would say the original post, which had import "fmt" in and used fmt.Println is better than println() but this post seems to be an exercise in "Hello, World! Code Golf" so not too fussed about it
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Something like this?
Yep, perfect
But remember, according to the documentation print() and println() are built-in functions for bootstrapping and not guaranteed to stay in the language.
Yes you are correct. If we want to be pedantic I would say the original post, which had
import "fmt"
in and usedfmt.Println
is better thanprintln()
but this post seems to be an exercise in "Hello, World! Code Golf" so not too fussed about it