Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common internal #102

Merged
merged 4 commits into from
Oct 19, 2015
Merged

Common internal #102

merged 4 commits into from
Oct 19, 2015

Conversation

kardianos
Copy link
Contributor

Put the "common" package behind the internal folder so it is not part of an API promise, implicit or explicit.

ARM CPUs don't include the same fields as  x86 and amd64 CPUs in
the /proc/cpuinfo list. Pull information from the /sys/...
device tree as well as updating when a CPU is done in cpuinfo.

Fixes shirou#88
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes shirou#100
@shirou
Copy link
Owner

shirou commented Oct 19, 2015

Thanks!

Can the internal work on go1.4? I think it works, but I want just a confirmation.

@kardianos
Copy link
Contributor Author

It compiles just fine in go1.4, just like any other folder; in go1.4 it is only enforced for the std lib. For go1.5 it is enforced for all.

So yes, it will still compile and function for go1.4.

shirou added a commit that referenced this pull request Oct 19, 2015
@shirou shirou merged commit 72109c3 into shirou:master Oct 19, 2015
@shirou
Copy link
Owner

shirou commented Oct 19, 2015

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants