Golang

Go μ„€μΉ˜ 및 ν”„λ‘œμ νŠΈ 생성 ꡬ글 검색을 톡해 μ„€μΉ˜νŒŒμΌμ„ λ‹€μš΄λ°›λŠ”λ‹€. root 디렉터리 섀정이 ν•„μš”ν•˜λ‹€.(β€˜C:\Go, β€˜/usr/local/go/bin/’) 이후 생성할 ν”„λ‘œμ νŠΈλŠ” 이 root 디렉터리 ν•˜μœ„ κ²½λ‘œμ— μƒμ„±λœλ‹€. μ™ΈλΆ€ κ²½λ‘œμ—λŠ” ν”„λ‘œμ νŠΈλ₯Ό 생성할 수 μ—†λ‹€. root 디렉터리 μ•ˆ src 디렉터리에 ν”„λ‘œμ νŠΈλ₯Ό μƒμ„±ν•œλ‹€. GoλŠ” npm, pip 와 같이 νŒ¨ν‚€μ§€ λ§€λ‹ˆμ €κ°€ μ—†λ‹€. git λ“±μ—μ„œ μ½”λ“œλ₯Ό λ°›μ•„μ˜€λ©΄ src 디렉터리 μ•ˆμ— λ„λ©”μΈλ³„λ‘œ μ •λ¦¬ν•΄μ„œ κ΄€λ¦¬ν•˜λŠ”κ²Œ 정석이닀. 문법 printf format specifier %v: used as a placeholder for the default format representation of a value %+v: a detailed representation of the value, including all the fields and their corresponding values for structs and maps.

<span title='2022-01-14 21:52:14 +0900 KST'>January 14, 2022</span>&nbsp;Β·&nbsp;1 min&nbsp;Β·&nbsp;AswinBlue