changing module name
This commit is contained in:
parent
79e3d1f0b9
commit
a1e52a7399
@ -7,7 +7,7 @@ A mix of useful packages, some are works in progress.
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```
|
||||||
go get github.com/jchenry/x
|
go get git.sdf.org/jchenry/x
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/jchenry/x
|
module git.sdf.org/jchenry/x
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/jchenry/x/encoding"
|
"git.sdf.org/jchenry/x/encoding"
|
||||||
"github.com/jchenry/x/log"
|
"git.sdf.org/jchenry/x/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Example: Resource(p, c, JSONEncoder, json.Decode(func()interface{}{return &foo{}}), log.None{})
|
// Example: Resource(p, c, JSONEncoder, json.Decode(func()interface{}{return &foo{}}), log.None{})
|
||||||
|
@ -3,7 +3,7 @@ package rest
|
|||||||
import (
|
import (
|
||||||
gohttp "net/http"
|
gohttp "net/http"
|
||||||
|
|
||||||
"github.com/jchenry/x/net/http"
|
"git.sdf.org/jchenry/x/net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EntityHandler returns a handler that provides restful verbs, following a CRUD model
|
// EntityHandler returns a handler that provides restful verbs, following a CRUD model
|
||||||
|
@ -3,9 +3,9 @@ package rest
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/jchenry/x/encoding"
|
"git.sdf.org/jchenry/x/encoding"
|
||||||
"github.com/jchenry/x/encoding/json"
|
"git.sdf.org/jchenry/x/encoding/json"
|
||||||
"github.com/jchenry/x/encoding/xml"
|
"git.sdf.org/jchenry/x/encoding/xml"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EntityEncoder func(w http.ResponseWriter, e interface{})
|
type EntityEncoder func(w http.ResponseWriter, e interface{})
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jchenry/x/time/arvelie"
|
"git.sdf.org/jchenry/x/time/arvelie"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFromDate(t *testing.T) {
|
func TestFromDate(t *testing.T) {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jchenry/x/time/neralie"
|
"git.sdf.org/jchenry/x/time/neralie"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFromTime(t *testing.T) {
|
func TestFromTime(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user