-
-
Save ksakae1216/7327f62eae08417e95fd60e5a7a36f1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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