【Go♡】 - 哈囉果01

Sunny.Cat :: 😸
1 min readAug 15, 2020

--

2020/08/18
♡ 以下開始都是自己在學Golang的筆記
有錯或不夠詳細請多指正 ☺♡

➤ Go 佩琪包
package main

➤ 引入
import “fmt”

檔名:
main.go

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

➤CMD
build 起來

$ go build main.go

啟動

$ ./main
Hello World

再次啟動

$ go run main.go
Hello World

#當沒有build會出現
bash: ./main: No such file or directory

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

--

--

Sunny.Cat :: 😸
Sunny.Cat :: 😸

Written by Sunny.Cat :: 😸

Hi there , My name is Sunny.cat ʕ•̫͡•ʔ I am a Web developer PHP🐘Typescript🐤Golang🐻‍❄️Python🦎

No responses yet