๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

go22

[์‰ฝ๊ณ  ๋น ๋ฅธ Go ์‹œ์ž‘ํ•˜๊ธฐ] #1.2 Variables and Constants [์ถœ์ฒ˜ - Nomad Coders] Go์—์„œ ์ƒ์ˆ˜๋Š” JavaScript์˜ const์™€ ๊ฐ™๊ณ  ๋ณ€์ˆ˜๋Š” let ์œผ๋กœ ๋ณด๋ฉด ๋œ๋‹ค. ์ƒ์ˆ˜๋Š” ๋ณ€์ˆ˜์ง€๋งŒ ๊ฐ’์„ ๋ฐ”๊ฟ€ ์ˆ˜๋Š” ์—†๋‹ค. ๋ณ€์ˆ˜๋Š” ๋ง ๊ทธ๋Œ€๋กœ ๊ฐ’์„ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค. Go๋Š” Type ์–ธ์–ด์ด๋‹ค. TypeScript์ฒ˜๋Ÿผ Type์„ ์ ์–ด ์ค˜์•ผ ํ•œ๋‹ค. package main func main() { const name string = "nico" } Type์„ ์ž˜๋ชป ์ง€์ •ํ•ด์ฃผ๋ฉด ์—๋Ÿฌ๊ฐ€ ๋œฌ๋‹ค. package main import "fmt" func main() { name := "nico" // ์ด๋ ‡๊ฒŒ ์„ ์–ธํ•˜๋ฉด Go๊ฐ€ ์•Œ์•„์„œ Type์„ ์ฐพ์•„ ์ค€๋‹ค. name = "lynn" fmt.Println(name) } ๋Œ€์‹  ์ด๋Ÿฐ ์ถ•์•ฝํ˜•์€ func ์•ˆ์—์„œ๋งŒ ๊ฐ€๋Šฅํ•˜๊ณ  ๋ณ€์ˆ˜์—๋งŒ ์ ์šฉ์ด ๊ฐ€๋Šฅํ•˜๋‹ค... 2021. 10. 26.
[์‰ฝ๊ณ  ๋น ๋ฅธ Go ์‹œ์ž‘ํ•˜๊ธฐ] #1.0 Main Package [์ถœ์ฒ˜ - Nomad Coders] package main // Go์—์„œ๋Š” ์–ด๋–ค ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋Š”์ง€ ์ž‘์„ฑํ•ด์ค˜์•ผ ํ•œ๋‹ค. import "fmt" // Go์—์„œ๋Š” "fmt"๋ผ๋Š” ๊ธฐ๋ณธ์ ์ธ formatting package๋ฅผ ์ œ๊ณตํ•ด ์ค€๋‹ค. func main() { fmt.Println("Hello world!") // stdout ์œผ๋กœ ํ‘œ์ค€ ๋ฌธ์ž์—ด ์ถœ๋ ฅ์„ ์ œ๊ณตํ•˜๋Š” ํ•จ์ˆ˜ } 2021. 10. 26.
[Golang] main.go ํ”„๋กœ์ ํŠธ๋ฅผ ์ปดํŒŒ์ผํ•˜๊ณ ์‹ถ์œผ๋ฉด ํŒŒ์ผ๋ช…์€ ๋ฌด์กฐ๊ฑด main.go ๋กœ ํ•ด์•ผ ํ•œ๋‹ค. 2021. 10. 26.
[Golang] Go ์„ค์น˜ํ•˜๊ธฐ https://golang.org/doc/install Download and install - The Go Programming Language Download and install Download and install Go quickly with the steps described here. For other content on installing, you might be interested in: 1. Go download. Click the button below to download the Go installer. Download Go Don't see your operating syste golang.org ์„ค์น˜ ํ›„ Mac ๊ธฐ์ค€ local ์— go < ๋ผ๋Š” ํด๋”๊ฐ€ ์žˆ์œผ๋ฉด ๋œ๋‹ค. terminal.. 2021. 10. 26.
๋ฐ˜์‘ํ˜•