// 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.