From 95db447b7c7e9a09922aa5528d5595b613d5c463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20B=C3=B6hm?= Date: Sun, 2 Jul 2017 22:27:41 +0200 Subject: [PATCH] use absolute imports instead of relative --- backend/backend.go | 4 ++-- backend/backend_test.go | 4 ++-- ddns.go | 10 +++++----- hosts/redis.go | 2 +- web/web.go | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/backend.go b/backend/backend.go index 9e1b340..d956809 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -1,8 +1,8 @@ package backend import ( - "../config" - "../hosts" + "github.com/pboehm/ddns/config" + "github.com/pboehm/ddns/hosts" "bufio" "errors" "fmt" diff --git a/backend/backend_test.go b/backend/backend_test.go index dfd2c55..5fa307e 100644 --- a/backend/backend_test.go +++ b/backend/backend_test.go @@ -1,8 +1,8 @@ package backend import ( - c "../config" - h "../hosts" + c "github.com/pboehm/ddns/config" + h "github.com/pboehm/ddns/hosts" "bufio" "bytes" "errors" diff --git a/ddns.go b/ddns.go index 11e2e57..0dd5264 100644 --- a/ddns.go +++ b/ddns.go @@ -1,10 +1,10 @@ package main import ( - "./backend" - "./config" - "./hosts" - "./web" + "github.com/pboehm/ddns/backend" + "github.com/pboehm/ddns/config" + "github.com/pboehm/ddns/hosts" + "github.com/pboehm/ddns/web" "flag" "log" "os" @@ -16,7 +16,7 @@ const ( CmdWeb string = "web" ) -var serviceConfig *config.Config +var serviceConfig *config.Config = &config.Config{} func init() { flag.StringVar(&serviceConfig.Domain, "domain", "", diff --git a/hosts/redis.go b/hosts/redis.go index 0ca1919..f000a6e 100644 --- a/hosts/redis.go +++ b/hosts/redis.go @@ -1,7 +1,7 @@ package hosts import ( - "../config" + "github.com/pboehm/ddns/config" "github.com/garyburd/redigo/redis" "time" ) diff --git a/web/web.go b/web/web.go index a31bd0a..5a94905 100644 --- a/web/web.go +++ b/web/web.go @@ -1,8 +1,8 @@ package web import ( - "../config" - "../hosts" + "github.com/pboehm/ddns/config" + "github.com/pboehm/ddns/hosts" "fmt" "gopkg.in/gin-gonic/gin.v1" "html/template"