Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
New file organization
Makefile | 2 +- main.go | 16 ++++++++++++++++ | 0
diff --git a/Makefile b/Makefile index 30b5309ac41d3c8d479f517cb0dbf7b8440dcf8c..e35057c8793a92ab4c4468a6f65a3e562f8076c8 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ mkdir -p $(dir $(PKGPATH)) ln -fTrs $(realpath .) $(PKGPATH) t: .go - env GOPATH=$(GOPATH) go build -o $@ ./src/main.go + env GOPATH=$(GOPATH) go build -o $@ ./main.go clean: rm -rf .go t diff --git a/main.go b/main.go new file mode 100644 index 0000000000000000000000000000000000000000..1ba83343aecf9ad0b5f4d3019114c44f3155a802 --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + "git.sr.ht/~porcellis/t/models" +) + +func main() { + var ( + n models.Note + ) + + n = models.Note{"Test", "~/notes/test.md"} + + fmt.Println(n) +} diff --git a/models/models.go b/models/models.go new file mode 100644 index 0000000000000000000000000000000000000000..9c2938a6c1188c7a50cddf81a86748e490995e4e --- /dev/null +++ b/models/models.go @@ -0,0 +1,6 @@ +package models + +type Note struct { + Name string + Path string +} diff --git a/src/models/models.go b/src/models/models.go deleted file mode 100644 index 9c2938a6c1188c7a50cddf81a86748e490995e4e..0000000000000000000000000000000000000000 --- a/src/models/models.go +++ /dev/null @@ -1,6 +0,0 @@ -package models - -type Note struct { - Name string - Path string -}