1 |
$ brew install go |
1 2 |
$ go version go version go1.15.6 darwin/amd64 |
爆速レンタルサーバならConoHa WING サーバはプロに全部お任せ!「仕事」に専念したいあなたにおすすめです。 ConoHa VPSで運営してま …
public string[] 優技録 = { "Data Science", "Linux", "MS", "DB", "AWS", "Infrastructure", "C#", "PHP", "Python", "JavaScript"};
1 |
$ brew install go |
1 2 |
$ go version go version go1.15.6 darwin/amd64 |
爆速レンタルサーバならConoHa WING サーバはプロに全部お任せ!「仕事」に専念したいあなたにおすすめです。 ConoHa VPSで運営してま …
https://github.com/yuukanehiro/GolangStudy Progate おみくじアプリ https://prog-8.com/go/study/2/9#/24
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
package main import "fmt" // 「math/rand」パッケージと「time」パッケージをインポートしてください import "math/rand" import "time" func main() { // 指定されたコードを貼り付けてください rand.Seed(time.Now().Unix()) // for文を作成してください for i := 1; i <= 3; i++ { number := rand.Intn(6) fmt.Printf("%d回目のおみくじ結果: ", i) switch number { case 0: fmt.Println("凶です") case 1, 2: fmt.Println("吉です") case 3, 4: fmt.Println("中吉です") case 5: fmt.Println("大吉です") } } } |
タイピングアプリ https://prog-8.com/go/study/3/2#/6 [crayon …