'sls offline GET /users (λ: getUsers) ✖ ENOENT: no such file or directory, open '~/reponame.go'

While using serverless offline for Golang.
On sending any request from Postman
GET /users (λ: getUsers)
✖ ENOENT: no such file or directory, open '~/Desktop/Reponame.go'
However the same works fine while using sls offline --useDocker



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source