const lineFormat … type PSILine … type PSIStats … // PSIStatsForResource reads pressure stall information for the specified // resource from /proc/pressure/<resource>. At time of writing this can be // either "cpu", "memory" or "io". func (fs FS) PSIStatsForResource(resource string) (PSIStats, error) { … } // parsePSIStats parses the specified file for pressure stall information. func parsePSIStats(r io.Reader) (PSIStats, error) { … }