
Go 정의
Golang의 공식 정의
"The Go programming language is an open source project to make programmers more productive.
Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of runtime reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language."
"Go 프로그래밍 언어는 프로그래머를 더 생산적으로 만들기 위한 오픈 소스 프로젝트입니다. Go는 표현력이 풍부하고 간결하며 깨끗하고 효율적입니다. 동시성 메커니즘을 통해 멀티코어 및 네트워크 시스템을 최대한 활용하는 프로그램을 쉽게 작성할 수 있으며, 새로운 유형 시스템은 유연하고 모듈화 된 프로그램 구성을 가능하게 합니다. Go는 기계 코드로 빠르게 컴파일되지만 가비지 수집의 편리함과 런타임 리플렉션의 기능이 있습니다. 동적으로 유형이 지정되고 해석되는 언어처럼 느껴지는 빠르고 정적으로 유형이 지정되고 컴파일된 언어입니다."
-출처 고랭. org-
Golang 이란?
구글에서 2012년 3월에 정식 발표된 오픈소스 프로그래밍 언어입니다.
Rob Pike, Robert Griesemer, Ken Thompson이 디자인했으며
정적 타이핑과 런타임 효율이 C++처럼 나고
사용성과 가독성이 파이썬과 자바스크립트 같으며
객체지향적(OOP) 개념이 Smalltalke 같고
병렬적 속성들이 Newsqueak 같은
한마디로 짱짱한 언어입니다.
다시 간단하게 설명하자면
오픈소스, 컴파일, 병렬 처리 지원, 테스팅 지원,
Gofmt, Gorun, Goget, Godoc 등 강력한 기본 라이브러리 지원,
가비지 컬렉션 지원 등입니다.
Golang 장점
배우기 쉽고
컴파일과 실행이 빠른 것들 등으로
개발 시간을 단축시켜줍니다.
Golang 단점
초창기 자바스크립트처럼 계속 언어 자체가 개발 중에 있어서
주요 문법 등이 바뀔 수 있습니다.
너무 간단하기 때문에 그게 오히려 독이 될 수도 있습니다.
코볼처럼 말이죠....
프레임워크나 에러 핸들링은 추후 개선되길 기대해봅니다.
2021년 기준 Golang 설치법
Golang 설치 방법
1.. Go 공식 사이트를 방문합니다.
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. 다운로드 클릭
/(윈도 운영체제의 경우 윈도 표시
/ 맥 유저의 경우 애플 표시 아래에 있는 다운로드를 클릭한다)
/(리눅스는 리눅스)
/(매우 특별한 사유가 있으신 분만 Source 다운로드하시면 됩니다)

제 경우에는 윈도에서 실행했습니다.
계속 Default경로, 세팅으로 다음을 누르고
Install을 누르고
설치했습니다.

설치가 완료되면 윈도의 경우 커맨드 창을 열고 go를 치시면
아래와 같이 Go관련 내용이 나오면 성공입니다.

이제 vscode가 없으신 분들은
아래에서 설치해주시고
https://code.visualstudio.com/
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
VS code extension으로 아래와 같이 Go를 추가합니다.

그다음
VS 코드에서
윈도 기준
Crtl + Shift + P을 누르고

Go install/update tools를

전부 체크해서 설치해줍니다.

설치가 완료되었습니다.
이제 cmd directory를 만들고
그 안에 web directory를 만든 다음
main.go 파일을 만들었습니다.
그 안에
아래와 같이 입력해주고
디버그를 하였습니다.


정상적으로 헬로가 출력되었습니다.
디버깅 말고 실행을 할 경우
main.go의 위치로 이동해서
go run main.go를 실행해주면 됩니다.

참조
https://appinventiv.com/blog/mini-guide-to-go-programming-language/
Guide on Go Programming Language
Go programming language is gaining a huge momentum in the market. But, what’s the reason behind this growth? What are its benefits and drawbacks? Find here.
appinventiv.com
Documentation - The Go Programming Language
Documentation The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and netwo
golang.org
'Go > Go 이론' 카테고리의 다른 글
Go 설치하는 방법 (0) | 2023.07.14 |
---|

Go 정의
Golang의 공식 정의
"The Go programming language is an open source project to make programmers more productive.
Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of runtime reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language."
"Go 프로그래밍 언어는 프로그래머를 더 생산적으로 만들기 위한 오픈 소스 프로젝트입니다. Go는 표현력이 풍부하고 간결하며 깨끗하고 효율적입니다. 동시성 메커니즘을 통해 멀티코어 및 네트워크 시스템을 최대한 활용하는 프로그램을 쉽게 작성할 수 있으며, 새로운 유형 시스템은 유연하고 모듈화 된 프로그램 구성을 가능하게 합니다. Go는 기계 코드로 빠르게 컴파일되지만 가비지 수집의 편리함과 런타임 리플렉션의 기능이 있습니다. 동적으로 유형이 지정되고 해석되는 언어처럼 느껴지는 빠르고 정적으로 유형이 지정되고 컴파일된 언어입니다."
-출처 고랭. org-
Golang 이란?
구글에서 2012년 3월에 정식 발표된 오픈소스 프로그래밍 언어입니다.
Rob Pike, Robert Griesemer, Ken Thompson이 디자인했으며
정적 타이핑과 런타임 효율이 C++처럼 나고
사용성과 가독성이 파이썬과 자바스크립트 같으며
객체지향적(OOP) 개념이 Smalltalke 같고
병렬적 속성들이 Newsqueak 같은
한마디로 짱짱한 언어입니다.
다시 간단하게 설명하자면
오픈소스, 컴파일, 병렬 처리 지원, 테스팅 지원,
Gofmt, Gorun, Goget, Godoc 등 강력한 기본 라이브러리 지원,
가비지 컬렉션 지원 등입니다.
Golang 장점
배우기 쉽고
컴파일과 실행이 빠른 것들 등으로
개발 시간을 단축시켜줍니다.
Golang 단점
초창기 자바스크립트처럼 계속 언어 자체가 개발 중에 있어서
주요 문법 등이 바뀔 수 있습니다.
너무 간단하기 때문에 그게 오히려 독이 될 수도 있습니다.
코볼처럼 말이죠....
프레임워크나 에러 핸들링은 추후 개선되길 기대해봅니다.
2021년 기준 Golang 설치법
Golang 설치 방법
1.. Go 공식 사이트를 방문합니다.
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. 다운로드 클릭
/(윈도 운영체제의 경우 윈도 표시
/ 맥 유저의 경우 애플 표시 아래에 있는 다운로드를 클릭한다)
/(리눅스는 리눅스)
/(매우 특별한 사유가 있으신 분만 Source 다운로드하시면 됩니다)

제 경우에는 윈도에서 실행했습니다.
계속 Default경로, 세팅으로 다음을 누르고
Install을 누르고
설치했습니다.

설치가 완료되면 윈도의 경우 커맨드 창을 열고 go를 치시면
아래와 같이 Go관련 내용이 나오면 성공입니다.

이제 vscode가 없으신 분들은
아래에서 설치해주시고
https://code.visualstudio.com/
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
VS code extension으로 아래와 같이 Go를 추가합니다.

그다음
VS 코드에서
윈도 기준
Crtl + Shift + P을 누르고

Go install/update tools를

전부 체크해서 설치해줍니다.

설치가 완료되었습니다.
이제 cmd directory를 만들고
그 안에 web directory를 만든 다음
main.go 파일을 만들었습니다.
그 안에
아래와 같이 입력해주고
디버그를 하였습니다.


정상적으로 헬로가 출력되었습니다.
디버깅 말고 실행을 할 경우
main.go의 위치로 이동해서
go run main.go를 실행해주면 됩니다.

참조
https://appinventiv.com/blog/mini-guide-to-go-programming-language/
Guide on Go Programming Language
Go programming language is gaining a huge momentum in the market. But, what’s the reason behind this growth? What are its benefits and drawbacks? Find here.
appinventiv.com
Documentation - The Go Programming Language
Documentation The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and netwo
golang.org
'Go > Go 이론' 카테고리의 다른 글
Go 설치하는 방법 (0) | 2023.07.14 |
---|