hello world
in Rust surely π
A "Hello World" in Go is just:
$ go mod init hello
$ cat > main.go <<EOF
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
$ go build
$ ./hello
Hello World
A "Hello World" in Go is just:
$ go mod init hello
$ cat > main.go <<EOF
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
$ go build
$ ./hello
Hello World
A "Hello World" in Go is just:
$ go mod init hello
$ cat > main.go <<EOF
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
$ go build
$ ./hello
Hello World
A "Hello World" in Go is just:
$ go mod init hello
$ cat > main.go <<EOF
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
$ go build
$ ./hello
Hello World
$ mkdir foo && cd foo
$ cargo init
Created binary (application) package
$ cargo run
Compiling ach v0.1.0 (/tmp/tmp/ach)
Finished dev [unoptimized + debuginfo] target(s) in 1.17s
Running `target/debug/ach`
Hello, world!
$ cat src/main.rs
fn main() {
println!("Hello, world!");
}
$
(Yes, a βhello worldβ is the default code created by
cargo init
.)
$ mkdir foo && cd foo
$ cargo init
Created binary (application) package
$ cargo run
Compiling ach v0.1.0 (/tmp/tmp/ach)
Finished dev [unoptimized + debuginfo] target(s) in 1.17s
Running `target/debug/ach`
Hello, world!
$ cat src/main.rs
fn main() {
println!("Hello, world!");
}
$
(Yes, a βhello worldβ is the default code created by
cargo init
.)
$ mkdir foo && cd foo
$ cargo init
Created binary (application) package
$ cargo run
Compiling ach v0.1.0 (/tmp/tmp/ach)
Finished dev [unoptimized + debuginfo] target(s) in 1.17s
Running `target/debug/ach`
Hello, world!
$ cat src/main.rs
fn main() {
println!("Hello, world!");
}
$
(Yes, a βhello worldβ is the default code created by
cargo init
.)
But yeah @prologic, I am finally just starting to learn Go actually. It's surprised me, from what I've seen, how simple some things can be on the web development side. For example something like the Gin web framework (example), things are happening in less boilerplate than often what I've seen in PHP frameworks etc which I didn't expect.
But yeah @prologic, I am finally just starting to learn Go actually. It's surprised me, from what I've seen, how simple some things can be on the web development side. For example something like the Gin web framework (example), things are happening in less boilerplate than often what I've seen in PHP frameworks etc which I didn't expect.