hello-go

command module
v0.0.0-...-9f479fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 1 Imported by: 0

README

Hello World in Go

Issue the following commands on the command line terminal.

$ go mod init github.com/lreimer/go-for-operations/hello-go
$ touch main.go

# open folder and `main.go` file in an IDE of your choice
$ code .

Next, open the folder and main.go file in an IDE of your choice and add the following code snippet to the file.

package main

import "fmt"

func main() {
        fmt.Println("Hello World 😀")
}

Save the file, open a terminal and build your first binary Go application.

$ go run main.go

$ go build
$ go build -o hello-go main.go

$ ./hello-go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL