diff options
author | sanine-a <sanine.not@pm.me> | 2023-04-27 11:28:21 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-04-27 11:28:21 -0500 |
commit | 8f8bed0e018d89f35f15b005b0109eb0ee3e9290 (patch) | |
tree | 638e521aa27578b2a9344576f597b8739ccb7f95 | |
parent | 51a40c981ab3a4902fb7dd661b2e4eddb1994c12 (diff) |
add db module
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | conf/go.mod | 8 | ||||
-rw-r--r-- | conf/main.go | 4 | ||||
-rw-r--r-- | db/db.go | 10 | ||||
-rw-r--r-- | db/go.mod | 3 |
5 files changed, 22 insertions, 5 deletions
@@ -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 |