Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created June 25, 2018 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksakae1216/7327f62eae08417e95fd60e5a7a36f1f to your computer and use it in GitHub Desktop.
Save ksakae1216/7327f62eae08417e95fd60e5a7a36f1f to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"./funcpkg"
)
func main() {
nyuumonFunc() // 入門編
// funcpkg.IfFunc() // if文
// funcpkg.SwitchFunc("Java") // switch文
// funcpkg.ForFunc() // for文
// funcpkg.PointerFunc() // ポインタ
// funcpkg.ReceiverFunc() // レシーバー
// funcpkg.StructFunc() // 構造体
funcpkg.AboutFunc() // 関数いろいろ
}
// 入門編
// ポイント
// 変数の宣言は型(string, intなど)を最後に持ってくる
func nyuumonFunc() {
var str string // 型を宣言
str = "Start!!!!!" // 値を設定
fmt.Println("Hellow Go World!! -> " + str)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment