LoginSignup
0
0

More than 5 years have passed since last update.

エラー内容が変わった

Last updated at Posted at 2019-05-16

♪大当たり〜

  • 使用しているディレクトリ名「type」は予約語だと@zetamatta からコメントをもらった
  • @zetamatta 情報ありがとうございました
  • 軽く検索するだけまぁ出てくる出てくる予約語

予約語をやめてみる

  • 予約語(使ってはダメ)をやめて、同じ「種類」を意味するsortを使用するとエラーが変わった
  • 修正前のエラーメッセージ
type/sake.go:1:9: expected 'IDENT', found 'type'
type/sake.go:2:2: expected ';', found 'EOF'
  • 修正後のエラーメッセージ
*******:~/go/alcohol$ go run main.go 
# command-line-arguments
./main.go:10:17: cannot refer to unexported name sort.beerfamous
./main.go:10:17: undefined: sort.beerfamous
./main.go:11:17: cannot refer to unexported name sort.sakefamous
./main.go:11:17: undefined: sort.sakefamous
./main.go:12:17: cannot refer to unexported name sort.whiskeyfamous
./main.go:12:17: undefined: sort.whiskeyfamous

気にせずまた明日挑戦

  • 引き続きエラーが表示されるが、まあまあ適当に書いたのでまあこんなもんかと
  • 明日また挑戦し今度こそ意図した通りに動かすぞ❤️
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0