您的位置 首页 golang

go 常用命令

常用命令:

  • go run 编译生成临时可执行文件,适合用于小程序的调试
  • go build 编译并生成可执行文件,默认与源码文件同名,可通过 -o 指定名称
  • go install 下载编译生成可执行文件,安装到 $GOPATH/bin 目录
  • go doc 文档工具
  • go clean 移除当前源码包和关联源码包里面编译生成的文件
  • go list 查看 全部安装的 package
  • go version 查看版本
  • go env 查看环境变量
  • go fmt 代码格式化

go mod 常用命令:

Golang 1.11 版本引入的官方包(package)依赖管理工具,解决之前没有地方记录依赖包具体版本的问题,方便依赖包的管理。

  • go mod download 下载模块到本地缓存,路径:$GOPATH/pkg/mod/cache
  • go mod edit 编辑 go.mod 的功能(如:go mod edit -fmt go.mod 格式化 go.mod)
  • go mod graph 显示 模块依赖图
  • go mod init 当前目录初始化 go.mod
  • go mod tidy 增加缺失的 package 删除不需要的 module
  • go mod vendor 把依赖拷贝到 vendor 目录
  • go mod verify 检查依赖关系
  • go mod why 解释为什么需要依赖

文章来源:智云一二三科技

文章标题:go 常用命令

文章地址:https://www.zhihuclub.com/98819.shtml

关于作者: 智云科技

热门文章

评论已关闭

35条评论

  1. The manufacturer of Tadalista tabs is Fortune Health Care, an Indian pharmaceutical company

  2. Sperm defects can be found in the count, or in the motility, or in the morphology or in all 3 or in any combination of these sperm parameters.

  3. Typically, patients will have some, but not all of these symptoms, depending on what part of the digestive tract is most affected.

  4. a variation of an exchange traded fund that would hold Bitcoins Furthermore, p27 Kip1 levels were up regulated in the same experimental conditions

  5. Squamous Cell Carcinoma Arising in Previously Burned or Irradiated Skin Archives of Surgery, 124 1, 115 117

  6. vehicle comparisons in the three brain regions at 4 and 8 weeks Adherence of the vaginal rings to the vaginal wall, making removal of the ring difficult, has been reported; some cases have required surgical removal

  7. 10 13 During this same time period, the research portfolio on cognitive changes after cancer treatment has expanded rapidly, 14 18 benefiting from research advances in the cognitive sciences and neuroimaging that are being applied to age related dementias

  8. Alternatively, iliac and femur bones were crushed and cells were collected by washing with PBS

  9. The minor hypersensitivity reactions consisted mostly of flushing 28, rash 12, hypotension 4, dyspnea 2, tachycardia 2, and hypertension 1

  10. erythromycin base will increase the level or effect of riluzole by affecting hepatic enzyme CYP1A2 metabolism

  11. Hogdall EV, Christensen L and Hogdall CK et al 2007 Prognostic value of estrogen receptor and progesterone receptor tumor expression in Danish ovarian cancer patients from the MALOVA ovarian cancer study Oncol Rep 18 5 1051 1059 PMID 17914554

  12. However, data from the Diuretic Optimization Strategies Evaluation DOSE AHF Trial demonstrated that patients randomly assigned to higher doses of loop diuretics had higher rates of AKI but similar outcomes with respect to rehospitalization and death 21 The organizing insistence of Carried on Both Sides is that imperial forms long outlive the empire from which they were generated

  13. First, OVXE significantly decreased HFD intake compared with OVXV treatment in mice exposed to intermittent HFD, while in mice exposed to continuous HFD, HFD intake was minimal and comparable between OVXE and OVXV groups Figure 1A

  14. Other associations have been made with Herpes zoster, Adenovirus, Toxoplasmosis, Salmonella, Streptococcal infection and Escherichia coli urinary tract infections 21

  15. mRNA levels were measured by quantitative real time PCR qRT PCR The stimulation of these body systems aids the body in healing the organs and tissues beneath where the castor oil pack is applied

  16. PUBMED Abstract LaCroix AZ, Chlebowski RT, Manson JE, et al viagra como dar ivermectina en gotas a nios The Association of the Nonwoven Fabrics Industry says its products aren t the problem

  17. Cholangiocarcinoma cells stably overexpressing wild type WT FLIP L, О”FLIP L mutant with deletion of calmodulin binding domain or LacZ control proteins were generated as described previously 25 and the effects of tamoxifen on apoptosis of these cells were determined by Annexin propidium iodide staining

  18. To the best of our knowledge, this is the highest rate of increased bone density in such a short period of time reported in the literature Genetic testing for the other urea cycle disorders is mostly done in specialized institutions

  19. Tarshish P, Tobin JN, Bernstein J, Edelmann CM 1996 Cyclophosphamide does not benefit patients with focal segmental glomerulosclerosis

  20. In the risk of bias domain related to deviation from intended interventions, there is a question on whether participants were aware of their intervention allocation; this was answered as no for all trials, because the participants in these trials were animals

网站地图