Skip to content

Commit 730c0ce

Browse files
committed
refactor(project): ♻️ move source code into a subpackage
1 parent 347baa6 commit 730c0ce

File tree

28 files changed

+20
-20
lines changed

28 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MIT
1212

1313
## Installation
1414

15-
`go install github.com/ninedraft/gemax`
15+
`go install github.com/ninedraft/gemax/gemax`
1616

1717
## Examples
1818

examples/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"embed"
77
"log"
88

9-
gemax "github.com/ninedraft/gemax"
9+
gemax "github.com/ninedraft/gemax/gemax"
1010
)
1111

1212
func main() {

client.go renamed to gemax/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strings"
1212
"sync"
1313

14-
"github.com/ninedraft/gemax/internal/bufreader"
15-
"github.com/ninedraft/gemax/status"
14+
"github.com/ninedraft/gemax/gemax/internal/bufreader"
15+
"github.com/ninedraft/gemax/gemax/status"
1616
)
1717

1818
// Client is used to fetch gemini resources.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strconv"
88
"strings"
99

10-
"github.com/ninedraft/gemax/internal/multierr"
11-
"github.com/ninedraft/gemax/status"
10+
"github.com/ninedraft/gemax/gemax/internal/multierr"
11+
"github.com/ninedraft/gemax/gemax/status"
1212
)
1313

1414
// MaxHeaderSize is used while parsing server responses.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/ninedraft/gemax"
10-
"github.com/ninedraft/gemax/status"
9+
"github.com/ninedraft/gemax/gemax"
10+
"github.com/ninedraft/gemax/gemax/status"
1111
)
1212

1313
func TestParseResponseHeader(test *testing.T) {

client_test.go renamed to gemax/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"io"
77
"testing"
88

9-
"github.com/ninedraft/gemax"
10-
"github.com/ninedraft/gemax/internal/tester"
9+
"github.com/ninedraft/gemax/gemax"
10+
"github.com/ninedraft/gemax/gemax/internal/tester"
1111
)
1212

1313
//go:embed testdata/client/pages/*
File renamed without changes.
File renamed without changes.

fs.go renamed to gemax/fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"path"
1212
"strings"
1313

14-
"github.com/ninedraft/gemax/status"
14+
"github.com/ninedraft/gemax/gemax/status"
1515
)
1616

1717
// FileSystem serves file systems as gemini catalogs.

0 commit comments

Comments
 (0)