func osMemStatus() (Physical, Virtual MemoryStats) { var memstat C.mem_stats C.fbsd_get_mem_stats(&memstat) Physical.Free = uint64(memstat.free) Physical.Total = uint64(memstat.total) Physical.Used = Physical.Total - Physical.Free return }
func main() { var memstat C.mem_stats C.fbsd_get_mem_stats(&memstat) }