a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
11 lignes
208 o
Go
11 lignes
208 o
Go
package tracker
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
func (p *Peer) fromDictInterface(d map[string]interface{}) {
|
|
p.IP = net.ParseIP(d["ip"].(string))
|
|
p.ID = []byte(d["peer id"].(string))
|
|
p.Port = int(d["port"].(int64))
|
|
}
|