title: Limit the memory allocation in Go Language?
body: <p>I'm finding a way to limit the memory usage in Go language. My application implementing with Go language has a big data that must be loaded in main memory, so I want to limit the maximum memory size of the process to the size specified by the user.</p>
  
  <p>In C language, actually, I accumulate the sizes of malloc'ed memory to do that, but I don't know how to do same thing in Go language.</p>
  
  <p>Please let me know if there is a way to do it.</p>
  
  <p>Thank you. </p>