<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>install on Golang</title><link>https://golang.k5kc.com/tags/install/</link><description>Recent content in install on Golang</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Aug 2020 00:10:00 +0530</lastBuildDate><atom:link href="https://golang.k5kc.com/tags/install/index.xml" rel="self" type="application/rss+xml"/><item><title>"go build" and "go install"</title><link>https://golang.k5kc.com/2020/08/16/go-build-vs-go-install/</link><pubDate>Sun, 16 Aug 2020 00:10:00 +0530</pubDate><guid>https://golang.k5kc.com/2020/08/16/go-build-vs-go-install/</guid><description>Let&amp;rsquo;s tidy up the $GOPATH directory and only keep Go source code files left over:
# tree . ├── bin ├── pkg └── src ├── greet │ └── greet.go └── hello └── hello.go 5 directories, 2 files The greet.go is greet package which just provides one function:
# cat src/greet/greet.go package greet import &amp;#34;fmt&amp;#34; func Greet() { fmt.Println(&amp;#34;नमस्ते किंशुक!&amp;#34;) } While hello.go is a main package which takes advantage of greet and can be built into an executable binary:</description></item></channel></rss>