Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
GorsyGentle
on Feb 21, 2024
|
parent
|
context
|
favorite
| on:
Go run
Except I cannot `go run ~/that/project/over/there` as the use of go modules means I have to change directory to be inside the package first. I'm not sure why that is exactly, but it's always been a nit I've found frustrating.
randomdata
on Feb 22, 2024
|
next
[–]
Especially when you can `go run that/project/over/there@latest`
Although, with slight modification, you can `go run -C ~/that/project/over/there .`
38
on Feb 21, 2024
|
prev
[–]
thats mostly true. you need to at least be at the top level of the module to do go run. any higher and you get a missing go.mod error.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: