Problem with a Golang webapp and system service

I am trying to create a golang server using a service on ububtu 18.04
the problem is with my app(,

root@tes-server:~/victoryDash# ./webapp
2020/06/16 09:16:15 The server is lisening on 3000 port

it works fine when it is executed in the terminal, but it does not run through the service
I create this service in




I have this error

root@tes-server:/lib/systemd/system# systemctl status gotest
‚óŹ gotest.service - goweb
   Loaded: loaded (/lib/systemd/system/gotest.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2020-06-16 11:21:16 UTC; 2s ago
  Process: 23262 ExecStart=/root/victoryDash/webapp (code=exited, status=2)
 Main PID: 23262 (code=exited, status=2)

Jun 16 11:21:16 tes-server systemd[1]: gotest.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 16 11:21:16 tes-server systemd[1]: gotest.service: Failed with result 'exit-code'.

the problem is with this type of projects when use html/template, I made a service for another project API rest and if it ran

You are trying to use relative pathes in a context where you have no working dir. You either need to use absolute pathes in your code or specify a WorkingDirectory in your unit file.

forgive my ignorance, but how can I do one of the two solutions

By using an absolute path in your call to http.Dir, or by specifying a proper workingdirectory in the service file like WorkingDirectory=/var/lib/myAppData/.

many thanks,
I used working directory, and it worked perfectly,
All my love to you, I had two days with this