code: func getMemoryCapacity() (uint64, error) {
  	out, err := ioutil.ReadFile("/proc/meminfo")
  	if err != nil {
  		return 0, err
  	}
  	return parseCapacity(out, memoryCapacityRegexp)
  }
docs: // getMemoryCapacity returns the memory capacity on the machine in bytes.