Skip to Content
러닝 Go : Go 개발자처럼 생각하는 방법
book

러닝 Go : Go 개발자처럼 생각하는 방법

by 존 보드너, 윤대석
February 2022
Beginner to intermediate
452 pages
10h 48m
Korean
Hanbit Media, Inc.
Content preview from 러닝 Go : Go 개발자처럼 생각하는 방법
253
9
모듈, 패키지 그리고 임포트
// currencies.
// If an error is returned, the Money instance is set to the zero value.
//
// Supported currencies are:
// USD - US Dollar
// CAD - Canadian Dollar
// EUR - Euro
// INR - Indian Rupee
//
// More information on exchange rates can be found
// at https://www.investopedia.com/terms/e/exchangerate.asp
func Convert(from Money, to string) (Money, error) {
// ...
}
Go
godoc
을 보여주는
go
doc
이라 불리는 명령라인 도구를 포함한다. 명령어
go
doc
PACKAGE
_
NAME
은 지정된 패키지를 위한 패키지
godoc
과 패키지의 식별자 목록을 보여
준다. 패키지의 특정 식별자를 위한 문서를 출력하기 위해서는
go
doc
PACKAGE
_
NAME
.
IDENTIFIER
_
NAME
명령어를 사용하자.
TIP
코드를 올바르게 주석 처리했는지 확인하자. 최소한 모든 노출된 식별자에는 주석이 있어야 한다.
golint
golangci
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

효율적인 리눅스 명령어 사용의 기술

효율적인 리눅스 명령어 사용의 기술

Daniel J Barrett

Publisher Resources

ISBN: 9791162245309