1、go test config_test.go
,always file,error: open conf/config.yml: The system cannot find the path specified 2、source code is ok 3、how do go test file
sucess in different directory
Your working directory during tests is different.
You may want a workaround with dynamic calculation of the config dir path, for example: http://www.kaihag.com/external-assets-working-directories-and-go/