Skip to content

Commit

Permalink
Refactor project/file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Mar 27, 2021
1 parent cfebc49 commit 3346e03
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ deps:

.PHONY: build
build:
go build -o ${BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"
go build -o ${BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" cmd/dictmaker/*.go
stuffbin -a stuff -in dictmaker -out dictmaker ${STATIC}

.PHONY: build-tokenizers
Expand Down
2 changes: 1 addition & 1 deletion api.go → cmd/dictmaker/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"

"github.com/go-chi/chi"
"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"github.com/knadh/paginator"
)

Expand Down
2 changes: 1 addition & 1 deletion init.go → cmd/dictmaker/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/go-chi/chi"
"github.com/jmoiron/sqlx"
"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"github.com/knadh/stuffbin"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion main.go → cmd/dictmaker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/go-chi/chi"
"github.com/jmoiron/sqlx"
"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"github.com/knadh/goyesql"
goyesqlx "github.com/knadh/goyesql/sqlx"
"github.com/knadh/koanf"
Expand Down
2 changes: 1 addition & 1 deletion site.go → cmd/dictmaker/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"

"github.com/go-chi/chi"
"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"github.com/knadh/paginator"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tokenizers/kannada/kannada.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"github.com/knadh/knphone"
)

Expand Down
2 changes: 1 addition & 1 deletion tokenizers/malayalam/malayalam.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/knadh/dictmaker/search"
"github.com/knadh/dictmaker/internal/search"
"gitlab.com/joice/mlphone-go"
)

Expand Down

0 comments on commit 3346e03

Please sign in to comment.