[GO] 개념
·
GO
최근 2021 Stack Overflow Developer Survey - Most wanted(82,914명이 응답) 조사에서 Go가 개발자들이 원하는 기술순위 4위를 차지했음, 많이는 들어봤지만 이유가 무엇일까? (참고로 1위는 파이썬 2위는 타입스크립트) Golang Go는 2009년 구글의 로버트 그리즈머, 홉 파이크, 켄 톰슨이 개발한 프로그래밍 언어로 빠른 성능, 안정성, 편의성, 쉬운 프로그래밍을 목표로 한 범용 프로그래밍 언어 Golang 특징 안정성, 정적 타입 / 강 타입 컴파일 언어, 빠른속도 (자바보다 빠름 / Go가 2.10secs, 자바 3.07secs) 가비지 컬렉션 지원 병행성 (고루틴을 통해 쓰레드를 생성해서 실행) 모듈화 및 패키지 Learning Curver가 낮음 Go..
[GO] is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt 발생시 처리
·
GO
go mod init "패키지명" 실행하면 해결됨
[GO] "fmt" imported but not usedcompilerUnusedImport
·
GO
"fmt" imported but not usedcompilerUnusedImport 발생시 방법 import "fmt" -> import _"fmt" 로 사용해야함 https://golang.org/doc/faq#unused_variables_and_imports 참고
[GO] 윈도우 설치
·
GO
1. 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 2. Download Go 클릭 3. 환경에 맞는 파일 다운로드 후 설치 4. 정상설치 확인