Go Notebook
  • Introduction
  • Syntax Helpers
    • Append
    • String
    • Slice
  • Idioms
    • Custom JSON Marshaling
    • Functional Options
    • Type Embedding
    • Laws of Reflection
  • Design Patterns
    • Builder
    • Factory Method
    • Object Pool
    • Singleton
    • Observer
    • Strategy
  • Hello World
    • Getting Started With Go
    • Go Packages
    • Hello World
  • Tic Tac Toe
    • Go Interfaces
    • Go Error Handling
    • Tic Tac Toe
  • HTTP Server
    • HTTP Handler
    • Build a Calculator
    • HTTP Unit Test
  • Concurrency
    • Goroutines
    • Go Concurrency Part 1
    • Go Concurrency Part 2
  • WebSocket Server
    • WebSocket Handler
    • Build a Chatroom
  • User Authentication
    • Go Module
    • Popular Web Libraries
    • React Tools
    • Build an Authentication Server
  • Numerical Computing
    • Gonum
    • Neural Networks
Powered by GitBook
On this page
  • Setup
  • Project Hello World
  • Source
  1. Hello World

Hello World

PreviousGo PackagesNextTic Tac Toe

Last updated 5 years ago

By now you should have your Golang installed, your workspace created, and your $GOPATH configured. It's time for hello world.

Setup

Create a folder named helloworld in the go-academy directory. Then create a main.go inside the helloworld/ directory.

WORKSPACE/
    src/
        go-academy/
            helloworld/
                main.go

Project Hello World

Source

GitHub
https://www.youtube.com/watch?v=idVlTUy0xHc&feature=youtu.bewww.youtube.com