code: func main () {
      d := GOnetstat.Tcp()
  
      // Marshal in prety print way
      output, err := json.MarshalIndent(d, "", "    ")
      if err != nil {
          fmt.Println(err)
      }
  
      fmt.Println(string(output))
  }
docs: /* Get TCP information and output in json.
     Information like 'user' and 'name' of some processes will not show if you
     don't have root permissions */