2
1
Fork 0

hello world

main
Sebastian Steger 2025-08-19 15:25:00 +00:00
parent 309b5a3421
commit aeff92b82f
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Hello World
## Run
`go run hello-world.go`
## Build
`go build hello-world.go`
## Formatting
`go fmt hello-world.go`
## Linting
`go vet hello-world.go`
### Examples
1. `fmt.Printf("hello world, %s\n")`
2. `a := 7` (already caught by the compiler)

View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("hello world")
}