본문 바로가기

Golang

(9)
golang 기초문서 github.com/golang/go/wiki/CodeReviewComments?fbclid=IwAR2g8X8ucnuyaLxBSwQcUONdYmxYBgs8XmWgBUc3oxyI-vps5mejKCmyStM golang/go The Go programming language. Contribute to golang/go development by creating an account on GitHub. github.com
golang 패키지 관리 www.joinc.co.kr/w/man/12/golang/mod Go 패키지관리 새로운 메이저 버전 의존성 추가하기 www.joinc.co.kr
table driven test 테스트 케이스를 map 으로 만들어 직관성이 좋음 t.Run 으로 해당 테스트 케이스 이름을 받아 직관성 향상
context 활용 예제 여러 url 요청을 받아서 그중 하나가 완료 되었을 때 다른 고루틴 url 을 종료 처리하는 기능 context 를 이요하여 goroutine 생성시 전달하여 처리함 hedgedrequest_cancellation.go GitHub Gist: instantly share code, notes, and snippets. gist.github.com gist.github.com/RicardoLinck/de61fb488ef8db0ab6fc749941f52919#file-hedgedrequest_cancellation-go
ubuntu golang 설치과정... 우분투 18.04 에서 진행하였습니다. 1) default utility install sudo apt install net-tools sudo apt install build-essential sudo apt install vim sudo apt install git sudo apt install mercurial sudo apt install ssh sudo apt install curl 2) golang 1.13.8 설치 wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz tar xvzf go1.13.8.linux-amd64.tar.gz sudo mv go /usr/local/go 3) go 환경설정 vi .bashrc export GO=/usr/..
golang memory 관리 원본 url : https://scvalex.net/posts/29/ 29. Escape Analysis in Go2013-05-02Returning a pointer to a local variable is legal in Go. As a C programmer, the following looks like an error to me, but it’s perfectly alright in Go.func NewFile(fd int, name string) *File { f := File{fd, name, nil, 0} return &f }Above we have a function that defines the local variable f as a File struct, and then returns ..
golang 유명한 블로그 golang 유명한 블로그 http://dave.cheney.net/ 한국 golang 커뮤니티https://plus.google.com/communities/115721275599816202991 트위터 golanghttps://twitter.com/hashtag/golang?src=hash 구글+ golanghttps://plus.google.com/112714242728066184635
go framework http://revel.github.io/