type ProcMapPermissions … type ProcMap … // parseDevice parses the device token of a line and converts it to a dev_t // (mkdev) like structure. func parseDevice(s string) (uint64, error) { … } // parseAddress converts a hex-string to a uintptr. func parseAddress(s string) (uintptr, error) { … } // parseAddresses parses the start-end address. func parseAddresses(s string) (uintptr, uintptr, error) { … } // parsePermissions parses a token and returns any that are set. func parsePermissions(s string) (*ProcMapPermissions, error) { … } // parseProcMap will attempt to parse a single line within a proc/[pid]/maps // buffer. func parseProcMap(text string) (*ProcMap, error) { … } // ProcMaps reads from /proc/[pid]/maps to get the memory-mappings of the // process. func (p Proc) ProcMaps() ([]*ProcMap, error) { … }