From a4a8072aaadefa296fea32bb2b6cd4d33548eee1 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Fri, 10 Nov 2023 18:16:26 +0530 Subject: [PATCH] Removed dot import from example --- examples/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/main.go b/examples/main.go index 60ba04e..fb645da 100644 --- a/examples/main.go +++ b/examples/main.go @@ -3,8 +3,7 @@ package main import ( "encoding/json" "fmt" - //REMOVE Dot Import after thinking of an appropriate name for the models package (Discouraged in GOlang) - . "github.com/shubhexists/go-json-db/gojsondb" + "github.com/shubhexists/go-json-db/gojsondb" ) // EVERY THING HERE SHOULD BE IN MODELS FOR THE USER TO CREATE THESE DYNAMICALLY, THESE ARE JUST THE EXAMPLES. @@ -29,7 +28,7 @@ type Address struct { func main() { //All the collections would be in the /database directory dir := "./database" - db, cache, err := New(dir) + db, cache, err := gojsondb.New(dir) if err != nil { fmt.Println(err) return