From 8f8bed0e018d89f35f15b005b0109eb0ee3e9290 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Thu, 27 Apr 2023 11:28:21 -0500 Subject: add db module --- .gitignore | 2 +- conf/go.mod | 8 ++++++-- conf/main.go | 4 ++-- db/db.go | 10 ++++++++++ db/go.mod | 3 +++ 5 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 db/db.go create mode 100644 db/go.mod diff --git a/.gitignore b/.gitignore index b5dc760..57385b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ phlox/phlox -conf/phloxconf +conf/phloxconf* diff --git a/conf/go.mod b/conf/go.mod index 81b2db5..ff194cd 100644 --- a/conf/go.mod +++ b/conf/go.mod @@ -1,3 +1,7 @@ -module sanine.net/phlox/phloxconf +module sanine.net/git/phlox/phloxconf -go 1.20 +go 1.19 + +replace sanine.net/git/phlox/db => ../db + +require sanine.net/git/phlox/db v0.0.0-00010101000000-000000000000 diff --git a/conf/main.go b/conf/main.go index 13bcf35..1015592 100644 --- a/conf/main.go +++ b/conf/main.go @@ -1,9 +1,9 @@ package main import ( - "fmt" + db "sanine.net/git/phlox/db" ) func main() { - fmt.Printf("hello world") + db.HelloWorld() } diff --git a/db/db.go b/db/db.go new file mode 100644 index 0000000..2c59694 --- /dev/null +++ b/db/db.go @@ -0,0 +1,10 @@ +package db + +import ( + "fmt" +) + + +func HelloWorld() { + fmt.Println("hello, world!") +} diff --git a/db/go.mod b/db/go.mod new file mode 100644 index 0000000..51b2b67 --- /dev/null +++ b/db/go.mod @@ -0,0 +1,3 @@ +module sanine.net/git/phlox/db + +go 1.19 -- cgit v1.2.1