zoukankan      html  css  js  c++  java
  • Vendor 包管理器 Govendor

    Govendor 是 Golang 的 Vendor 包管理器,方便你管理 Vendor 和 Verdor 包。

    特性:

    • 可以采用govendor add/update复制现有的依赖从$GOPATH

    • 如果要忽视vendor/*/,可采用govendor 同步恢复依赖

    • 可直接通过govendor fetch控制器添加新的依赖或者更新现有依赖

    • 可采用govendor migrate 实现系统间迁移

    • 支持Linux, OS X, Windows,甚至现有所有操作系统

    • 支持Git,Hg,SVN,BZR(必须指定一个路径)

    快速开始

    # Setup your project.
    cd "my project in GOPATH"
    govendor init
    
    # Add existing GOPATH files to vendor.
    govendor add +external
    
    # View your work.
    govendor list
    
    # Look at what is using a package
    govendor list -v fmt
    
    # Specify a specific version or revision to fetch
    govendor fetch golang.org/x/net/context@a4bbce9fcae005b22ae5443f6af064d80a6f5a55
    govendor fetch golang.org/x/net/context@v1   # Get latest v1.*.* tag or branch.
    govendor fetch golang.org/x/net/context@=v1  # Get the tag or branch named "v1".
    
    # Update a package to latest, given any prior version constraint
    govendor fetch golang.org/x/net/context
    
    # Format your repository only
    govendor fmt +local
    
    # Build everything in your repository only
    govendor install +local
    
    # Test your repository only
    govendor test +local
    

      

  • 相关阅读:
    C#将DataTable按固定个数拆分成多个表
    IDataRowPersistable
    使用临时表的示例
    2011 11 28 sql语句学习
    2010 11 30 DrawCurve GDI绘制曲线
    如何查看viewstate的内容
    const 和 readonly 的区别
    access insert 语法错误
    asp.net下载文件的常用方法大全
    【转】JS超强判断电话号码
  • 原文地址:https://www.cnblogs.com/liujie-php/p/10600491.html
Copyright © 2011-2022 走看看