Go 타사 라이브러리를 설치하는 방법

풀어 주다: 2020-02-18 17:21:02
앞으로
3288명이 탐색했습니다.

golang에는 뛰어난 타사 라이브러리가 많이 있습니다. Go 언어 프로그래밍을 사용할 때 타사 라이브러리가 자주 사용됩니다. 다음 칼럼에서는 go 언어 튜토리얼 칼럼에서 Go 타사 라이브러리를 설치하는 방법을 소개합니다.

Go 타사 라이브러리를 설치하는 방법

go help view 명령

The commands are:

    build       compile packages and dependencies
    clean       remove object files
    doc         show documentation for package or symbol
    env         print Go environment information
    fix         run go tool fix on packages
    fmt         run gofmt on package sources
    generate    generate Go files by processing source
    get         download and install packages and dependencies
    install     compile and install packages and dependencies
    list        list packages
    run         compile and run Go program
    test        test packages
    tool        run specified go tool
    version     print Go version
    vet         run go tool vet on packages

Use "go help [command]" for more information about a command.

Additional help topics:

    c           calling between Go and C
    buildmode   description of build modes
    filetype    file types
    gopath      GOPATH environment variable
    environment environment variables
    importpath  import path syntax
    packages    description of package lists
    testflag    description of testing flags
    testfunc    description of testing functions

Use "go help [topic]" for more information about that topic.
로그인 후 복사

여기에서는 Go get을 사용하여 github의 타사 라이브러리를 직접 얻은 다음 go install을 사용하여 타사 라이브러리를 설치합니다.

예를 들어 설치를 수행합니다. gocurse 예시 (git 경로는 https://github.com/mpatraw/gocurse.git)

go get github.com/mpatraw/gocurse
로그인 후 복사

더 많은 Go 언어 지식을 알고 싶다면 PHP 중국어 웹사이트go 언어 튜토리얼 칼럼을 주목해주세요.

위 내용은 Go 타사 라이브러리를 설치하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
go
원천:csdn.net
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!