4 ms·
The first one can be shortened for Go: package main func main() { println("Hello, world!") } And it looks even more similar to the Swift versio
by Doublon 11y ago
The first one can be shortened for Go:
package main
func main() {
println("Hello, world!")
}
And it looks even more similar to the Swift version.
- 0x001D 11y agofor println() "These functions are documented for completeness but are not guaranteed to stay in the language." http://golang.org/ref/spec#Bootstrapping http://golang.org/ref/spec#Bootstrapping