4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS EC2 の golang 開発環境構築 - 2020

Posted at

事前準備

Golang インストール

List
$ amazon-linux-extras | grep golang
29  golang1.11=latest        enabled      \
Install
$ sudo amazon-linux-extras install -y golang1.11
$ go version
go version go1.13.4 linux/amd64

VSCode Plugin Install

1.png

Ctrl + Shift + P で ツールなどインストール

2.png
3.png

Hello World!

NewFile
$ cd $GOPATH
$ mkdir src
$ cd src
$ mkdir hello
$ cd hello
$ touch hello.go

VSCode で開く

Remote Development 機能使ってますが、省略します。
4.png
5.png

Coding

6.png

Execute

7.png

Debug

8.png
9.png

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?