[Solved] unable to test template in golang
If you want to test a method that contains template which is executing inside that particular method then you have to provide the absolute path. Follow these steps: Set current working directory in your terminal: export varname=”absolutepath” For example: export PATH=”/go/src/github.com/project1″ Use this command in your terminal: echo $varname For example: echo $PATH /go/src/github.com/project1 It … Read more