๋ฐ์ํ Data Base56 [์ฝ๊ณ ๋น ๋ฅธ 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๋ ๋ด๊ฐ ์ํ๋ ๊ณณ์ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ง๋ค์ด์ ์ฌ์ฉํ ์ ์๋ค. Go์ ์ฝ๋๋ ๋ฌด์กฐ๊ฑด Go PATH ๋๋ ํ ๋ฆฌ์ ์ ์ฅ๋์ด์ผ ํ๋ค. /(local)user/go/ Github ํด๋๋ Downloads, Desktop ๋ฑ๋ฑ์ ์ ์ฅ ํ ์ ์๋ค ! ๊ทธ๋ฆฌ๊ณ go ๋๋ ํ ๋ฆฌ์๋ ์๋์ ๊ฐ์ 3๊ฐ์ ๋๋ ํ ๋ฆฌ๊ฐ ์์ด์ผ ํ๋ค 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. [MySQL] DB ์ ๊ทํ Q) ๋ค์ ํ ์ด๋ธ์ ์ด๋ค ์ ๊ทํ๋ฅผ ์๋ฐํ์๋๊ฐ ? ์ฃผ๋ฌธ๋ฒํธ ์ด๋ฆ ์ฃผ์ ์ ํ๋ฒํธ ์ํ1 ๊ฐฏ์ ๊ฐ๊ฒฉ ์ํ2 ๊ฐฏ์ ๊ฐ๊ฒฉ M20200801 ํ๊ธธ๋ ๋๊ตฌ 010-1111-1111 ๋ง์คํฌ 10 500 ๋ณผํ 30 300 M20200802 ์ด์์ ์์ธ 010-2222-2222 ๋ ธํธ๋ถ 1 2000000 ๋ง์ฐ์ค 1 15000 M20200803 ํ๊ธธ๋ ๋๊ตฌ 010-1111-1111 ์ฒญ๋ฐ์ง 2 100000 โ โ โ M20200804 ๊น์ ์ ๋ถ์ฐ 010-3333-3333 ํฅ์ 2 50000 ์๊ณ 1 70000 โ โ A) ์ 1 ์ ๊ทํ ์๋ฐ โ create table order_tb (order_no varchar(9), name varchar(10), addr varchar(45), phone varchar(13), pri.. 2021. 2. 9. ์ด์ 1 2 3 4 5 6 7 8 ยทยทยท 10 ๋ค์ ๋ฐ์ํ