Skip to content

Commit

Permalink
Removed dot import from example
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhexists committed Nov 10, 2023
1 parent ddfce7e commit a4a8072
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit a4a8072

Please sign in to comment.