build

command
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

ysoftman build 인자 전달 테스트 -ldflag 로 go link (go tool link) 시 인자를 전달 할 수 있다. -X importpath.name=value 형태로 패키지내의 변수에 값을 전달 할 수 있다. 다음과 같이 버전을 명시하는데 유용하다. go build -ldflags "-X main.var1=ysoftman -X main.version=1.2.3 -X main.buildtime=`date -u +%Y%m%d%H%M`" ./build

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL