2018年8月1日水曜日

開発環境

Introducing Go: Build Reliable, Scalable Programs (Caleb Doxsey (著)、O'Reilly Media)のChapter 1.(Getting Started)、Exercises(No. 211)1、2、3、4、5.を取り組んでみる。

コード(Emacs)

package main

import (
 "fmt"
 "os"
)

func main() {
 fmt.Println("Hello, Go!")
 os.Exit(1)
}

入出力結果(Terminal)

$ go run sample.go
Hello, Go!
exit status 1
$

0 コメント:

コメントを投稿