Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 548 Bytes

MODULES.md

File metadata and controls

19 lines (19 loc) · 548 Bytes

Working with golang modules

Adding golang vendor modules

  1. Project must have the go.mod created

    go mod init
    
  2. Use go get to add the package

    GOPRIVATE=github.com/untangle/golang-shared go get -d github.com/untangle/golang-shared
    
  3. Use go tidy to cleanup dependencies

    go mod tidy
    
  4. Use go vendor to add the vendor files into vendor/*

    go mod vendor