- go
- ๋ค์ต์คํธ๋ผ
- DFS
- ์นด์นด์ค ์ฝํ
- ํธ๋ฆฌ
- ์ํฐ๋
- BFS
- golang
- ํ๋ฆฌ์จ๋ณด๋ฉ
- C++
- ์ด๋ถํ์
- ์์ฝ๋
- DP
- Python
- ์๊ณ ๋ฆฌ์ฆ
- ๋ฐฑ์๋ ํ๋ฆฌ์จ๋ณด๋ฉ
- ๋นํธ๋งต
- ์นด์นด์ค2021
- js
- ๋นํธ๋ง์คํน
- ์ฌ๋ผ์ด๋ฉ ์๋์ฐ
- ์น๋ฆฐ์ด
- nestjs
- ๊ฐ์ฅ๊ฐ๊น์ด๊ณตํต์กฐ์
- ๋ฐฑ์ค
- LCs
- ํ๋ก๊ทธ๋๋จธ์ค
- ์ฌ๊ท
- Union-Find
- ๋์ ํ๋ก๊ทธ๋๋ฐ
- Today
- Total
Hello Ocean! ๐ผ
go ์ธ์ด ์์ํ๊ธฐ ๋ณธ๋ฌธ
์ค์น ํ์
cmd -> go , go env ๋๊ฐ ๋ช ๋ น์ด๋ก ์ ์ค์น๋์๋์ง ํ์ธ
go ์ฝ๋๋ฅผ ์ ์ฅํ ํด๋๋ฅผ ์ํ๋ ์์น์ ์์ฑํ ํ ํ๊ฒฝ๋ณ์ ๋ฑ๋ก (GOPATH)
๋ฉ๋ชจ์ฅ์ผ๋ก ์ฝ๋๋ฅผ ์์ฑํ ํ .go ํ์ฅ์๋ก ์ ์ฅ
cmd์์ ์์น๋ฅผ ์ฝ๋๊ฐ ์ ์ฅ๋ ํด๋๋ก ์ฎ๊ธด ํ์
go build test.go -> go run test.go (binary ์ฝ๋ ์์ฑ ํ์ ์คํ)
go run test.go (binary ์ฝ๋ ์์ฑํ์ง ์๊ณ ์คํ)
go install test.go (๊ธฐ๋ณธ binํด๋์ ์์ฑ ํ ์คํ)
package main //๊ธฐ๋ณธ ํจํค์ง
import "fmt" //๊ธฐ๋ณธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
func main() {
fmt.Println("hello world!")
}
๊ณต์ ๋ฌธ์ : https://golang.org
The Go Programming Language
Download Go Binary distributions available for Linux, macOS, Windows, and more. // You can edit this code! // Click here and start typing. package main import "fmt" func main() { fmt.Println("Hello, ไธ็") } Hello, World! Conway's Game of Life Fibonacci
golang.org
์จ๋ผ์ธ ์ปดํ์ผ๋ฌ : https://play.golang.org
The Go Playground
package main import ( "fmt" ) func main() { fmt.Println("Hello, playground") } About the Playground The Go Playground is a web service that runs on golang.org's servers. The service receives a Go program, vets, compiles, links, and runs the program inside
play.golang.org
- ๋ ํ์ดํ ๋ฐฉ์์ด๋ค
'Algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์๊ณ ๋ฆฌ์ฆ ์คํฐ๋] ์๋ฃ๊ตฌ์กฐ_2 (0) | 2020.07.28 |
---|---|
[์๊ณ ๋ฆฌ์ฆ ์คํฐ๋] ์๋ฃ๊ตฌ์กฐ_1 (0) | 2020.07.20 |
[์๊ณ ์คํ] ์์ํ #Quantize, ์ฑ 8.9์ (0) | 2020.05.11 |
[์๊ณ ๋ฆฌ์ฆ ์คํฐ๋] ์๊ณ ์คํ #PI (0) | 2020.04.27 |
[์๊ณ ๋ฆฌ์ฆ ์คํฐ๋] ๋ฐฑ์ค #1461 ๋์๊ด (1) | 2020.04.23 |