shirou / gopsutil

psutil for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFC] Separate subdirectory

shirou opened this issue · comments

I write all files under the root directory. But each part is not related and some user may want to use just a/some feature.

I want to separate to subdirectory like

gopsutil
   - common
        - common_linux.go
        - common_freebsd.go
   - host
        - host_linux.go
        - host_freebsd.go
   - disk
        - disk_linux.go
        - disk_linux.go

I know this will break compatibility. But I think it can be more structured and become easy to maintain and enhance.
How do you feel it? please tell what you think.

First off, thank you for making this package! =)

For what it is worth, I think organizing like that would make the project look very structured and nice. It could also reduce the compiled size of applications when they only use a single component (like memory when cpu information isn't needed). I say go for it!

Thank you for the comment.

Then, I'll make that changes on the some branch. and will merge into the master at end or middle of Dec, 2014.

I'm working on separate_directories branch.

package structure has been changed on the master.