The Simplest Go Example

From NovaOrdis Knowledge Base
Revision as of 20:11, 15 December 2023 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

The simples way to get experimenting with Go code is to install Go and then:

  • Create a directory (gotest).
  • In that directory, create a main.go file with this content:
package main

func main() {
  println(".")
}
  • Execute with:
go run main.go