From 176abcb0b1f9ee177c1655ac47a5b92539908adf Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Sun, 21 Sep 2014 17:52:24 +0200 Subject: [PATCH] Move util/socket.go to service/ --- elvishd/main.go | 3 +-- {util => service}/socket.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename {util => service}/socket.go (94%) diff --git a/elvishd/main.go b/elvishd/main.go index 870430ef..7cfac708 100644 --- a/elvishd/main.go +++ b/elvishd/main.go @@ -15,7 +15,6 @@ import ( "github.com/coopernurse/gorp" _ "github.com/mattn/go-sqlite3" "github.com/xiaq/elvish/service" - "github.com/xiaq/elvish/util" ) const ( @@ -23,7 +22,7 @@ const ( ) func main() { - laddr, err := util.SocketName() + laddr, err := service.SocketName() if err != nil { log.Fatalln("get socket name:", err) } diff --git a/util/socket.go b/service/socket.go similarity index 94% rename from util/socket.go rename to service/socket.go index 2a3b874f..2ad9497a 100644 --- a/util/socket.go +++ b/service/socket.go @@ -1,4 +1,4 @@ -package util +package service import ( "fmt"