Skip to content

SHIMURA0/golang-for-baby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Golang-for-baby

To learn Golang, we begin with the syntax of writing hello world.

The following is the fully excutable go program of "Hello World!"

package main

import "fmt"

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

First, note that at very beginning, we have the line

package main

Every go script begins with the

package ${filename}

where ${filename} is the name of the go script. In this way, a go project is structured as a collection of packages。

this is $\mathscr{A}$

About

Try to teach coding to modern babies 👶

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published