You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separate all parsing functions (or make public) #478
As procfs already using parseX(io.Reader) functions for parsing proc filesystem files, some functions also do syscall to read the target file' content. The main pitfall of this is that procfs enforce us to use this package only on Linux. For the people who want to make some stuff using this package on other OS environments, it's slightly difficult.
Proposal
Separate core parsing functions: (i.e. os.Open and parsing logic should not be allowed in same function)
These functions should NOT do any syscall (or depend on)
All functions should accept an input arg: io.Reader or []byte
Activity
discordianfish commentedon Nov 8, 2022
This sounds reasonable to me. @SuperQ wdyt?