Skip to content

Instantly share code, notes, and snippets.

@nnao45
nnao45 / gist:942c4e9465387f5fda9227da00495e86
Created October 30, 2017 16:06
example AddPath() & GetRib()
package main
import (
"fmt"
api "github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/gobgp/cmd"
"github.com/osrg/gobgp/packet/bgp"
gobgp "github.com/osrg/gobgp/server"
"github.com/osrg/gobgp/table"
@nnao45
nnao45 / file0.txt
Last active October 14, 2017 13:13
findコマンドが遅いからgoで書き直してみた件 ref: http://qiita.com/A_Resas/items/aa22af6df3c8b6a89409
$ sudo time find / -name "*client*" > /dev/null
real 0m1.503s
user 0m0.980s
sys 0m1.068s