0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Go学習

Last updated at Posted at 2025-02-16

環境構築

  1. brew install go
  2. go version
    go version go1.24.0 darwin/arm64
    

hello world

  1. go mod init my-app
  2. vi main.go
    package main
    
    import "fmt"
    
    func main(){
    	fmt.Println("hello world")
    }
    
  3. ビルドして実行
    1. go build
    2. ./my-app
  4. ビルド&実行
    1. go run main.go

フォーマット

vscodeのsettingに下記を追記

  "[go]": {
    "editor.tabSize": 2,
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "golang.go"
  }
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?