Skip to content

Commit

Permalink
update go util path
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed May 7, 2015
1 parent 3eb4ded commit d14ce14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/d2ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"fmt"
"strconv"
"bitbucket.org/txthinking/util"
"github.com/txthinking/ant"
)

func Usage(){
Expand All @@ -28,7 +28,7 @@ func main(){
if err != nil{
Usage()
}
ip, err := util.Decimal2IP(d)
ip, err := ant.Decimal2IP(d)
if err != nil{
Usage()
}
Expand Down
8 changes: 4 additions & 4 deletions scripts/iprange.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package main

import (
"bitbucket.org/txthinking/util"
"github.com/txthinking/ant"
"os"
"fmt"
)
Expand All @@ -24,11 +24,11 @@ func main(){
if len(os.Args) != 2{
Usage()
}
c, err := util.CIDR(os.Args[1])
c, err := ant.CIDR(os.Args[1])
if err != nil{
Usage()
}
f, _ := util.IP2Decimal(c.First)
l, _ := util.IP2Decimal(c.Last)
f, _ := ant.IP2Decimal(c.First)
l, _ := ant.IP2Decimal(c.Last)
fmt.Printf("%d\t%d\n", f, l)
}

0 comments on commit d14ce14

Please sign in to comment.