Does go build
include other supporting files used in code and ships it along with exe?
For ex:
--> input.go - contains go code to read input from text file
--> inpdata.txt
when we do go build
, does the inpdata.txt
files get shipped as well?
if these supporting files are excluded, how do they get their input values which are being fed from external files?
I am trying to build a binary (exe
file precisely for win-OS) using Golang.
After reading some of the documentation can understand clearly that the go build
command which produces the exe file for win-OS ignores _test.go
files and all tesdata
folders.
Also referred to go build
binary package in the documentation, mentioned this is applicable only to non source files only.