How to get network Speed in linux using golang
<p>guys  i am reading <strong>/proc/net/dev</strong> for received and transmitted bytes 
     i am able to calculate in_traffic ,out_traffic but Speed not able to find </p>

<p>delta_time is difference b/w last checked unix time and current unix time</p>

<pre><code>in_traffic = ( ( (new_inbytes - prev_inbytes) * 8 ) /  (delta_time) )
out_traffic = ( ( (new_outbytes -  prev_outbytes) * 8) / (delta_time))

if speed &gt; 0{
        in_utilization = in_traffic / (speed * 10000)
        out_utilization = out_traffic / (speed * 10000)
    }   
</code></pre>

<p>please help,
thanks </p>