Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBreaking files of the main package makes it difficult to test using `go run` #4493
Comments
krasi-georgiev
added
help wanted
kind/enhancement
labels
Aug 13, 2018
This comment has been minimized.
This comment has been minimized.
|
is |
This comment has been minimized.
This comment has been minimized.
|
I wish it was that easy :) opening a PR in a sec as this was very easy to fix by moving these in a dedicated package. |
krasi-georgiev
referenced this issue
Aug 13, 2018
Merged
move runtime debug funcs in own package #4494
krasi-georgiev
closed this
in
#4494
Aug 22, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
krasi-georgiev commentedAug 13, 2018
Proposal
Use case. Why is this important?
Run and debug Prometheus locally.
It is important so that we can debug quickly :)
I wish we could organise the files so that the
cmd/prometheus/contains onlymain.goandmain_test.goso that I can run and debug only usinggo run main.go.currently we have so many files in there so that it is no easy to follow which files need to be passed to the
go runcommand.I guess that mean putting all the other files in their dedicated packages which seems the idiomatic go way anyway.