Golang - Hello World!


Aug 30, 2021

不免俗的第一篇當然就是要來 Run Hello World 啊。


main.go

package main

import "fmt"

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

直接 Run

$ go run main.go

Build 執行檔

$ go build main.go
$ ./main
#golang #GO







你可能感興趣的文章

ASP.NET Core Web API 入門教學 - 使用AutoMapper更新資料

ASP.NET Core Web API 入門教學 - 使用AutoMapper更新資料

第 19 期 Python 程式設計入門-作業任務8

第 19 期 Python 程式設計入門-作業任務8

Typescript express 打造Twitter專案 Part1

Typescript express 打造Twitter專案 Part1






留言討論





2
2
2