changing module name

This commit is contained in:
Colin Henry 2024-09-05 22:30:30 -07:00
parent 79e3d1f0b9
commit a1e52a7399
7 changed files with 10 additions and 10 deletions

View File

@ -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
View File

@ -1,3 +1,3 @@
module github.com/jchenry/x module git.sdf.org/jchenry/x
go 1.19 go 1.19

View File

@ -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{})

View File

@ -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

View File

@ -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{})

View File

@ -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) {

View File

@ -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) {