Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
567 changes: 293 additions & 274 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/replify/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/sivaosorg/replify/pkg/slogger"
import "github.com/polarixa/replify/pkg/slogger"

func main() {

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//
// # Installation
//
// go get github.com/sivaosorg/replify
// go get github.com/polarixa/replify
//
// # Getting Started
//
Expand Down
4 changes: 2 additions & 2 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package replify
import (
"os"

"github.com/sivaosorg/replify/pkg/strutil"
"github.com/sivaosorg/replify/pkg/sysx"
"github.com/polarixa/replify/pkg/strutil"
"github.com/polarixa/replify/pkg/sysx"
)

// Resource returns the underlying [sysx.Resource], which exposes the
Expand Down
8 changes: 4 additions & 4 deletions entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"net/http"
"time"

"github.com/sivaosorg/replify/pkg/conv"
"github.com/sivaosorg/replify/pkg/encoding"
"github.com/sivaosorg/replify/pkg/fj"
"github.com/sivaosorg/replify/pkg/strutil"
"github.com/polarixa/replify/pkg/conv"
"github.com/polarixa/replify/pkg/encoding"
"github.com/polarixa/replify/pkg/fj"
"github.com/polarixa/replify/pkg/strutil"
)

// UnwrapJSON parses a raw JSON string and maps it into a [wrapper] struct.
Expand Down
2 changes: 1 addition & 1 deletion error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/sivaosorg/replify"
"github.com/polarixa/replify"
)

func TestWithError(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion errstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/sivaosorg/replify"
"github.com/polarixa/replify"
)

func TestStackTrace(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/sivaosorg/replify
module github.com/polarixa/replify

go 1.24.0

Expand Down
6 changes: 3 additions & 3 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"
"slices"

"github.com/sivaosorg/replify/pkg/slogger"
"github.com/sivaosorg/replify/pkg/strchain"
"github.com/sivaosorg/replify/pkg/strutil"
"github.com/polarixa/replify/pkg/slogger"
"github.com/polarixa/replify/pkg/strchain"
"github.com/polarixa/replify/pkg/strutil"
)

// WithCode sets the `code` field of the [header] instance.
Expand Down
14 changes: 7 additions & 7 deletions meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"time"

"github.com/sivaosorg/replify/pkg/coll"
"github.com/sivaosorg/replify/pkg/conv"
"github.com/sivaosorg/replify/pkg/fj"
"github.com/sivaosorg/replify/pkg/randn"
"github.com/sivaosorg/replify/pkg/slogger"
"github.com/sivaosorg/replify/pkg/strchain"
"github.com/sivaosorg/replify/pkg/strutil"
"github.com/polarixa/replify/pkg/coll"
"github.com/polarixa/replify/pkg/conv"
"github.com/polarixa/replify/pkg/fj"
"github.com/polarixa/replify/pkg/randn"
"github.com/polarixa/replify/pkg/slogger"
"github.com/polarixa/replify/pkg/strchain"
"github.com/polarixa/replify/pkg/strutil"
)

// WithApiVersion sets the API version for the [meta] instance.
Expand Down
2 changes: 1 addition & 1 deletion norm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"time"

"github.com/sivaosorg/replify/pkg/strutil"
"github.com/polarixa/replify/pkg/strutil"
)

// NormAll performs a comprehensive normalization of the wrapper instance.
Expand Down
4 changes: 2 additions & 2 deletions page.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package replify

import (
"github.com/sivaosorg/replify/pkg/slogger"
"github.com/sivaosorg/replify/pkg/strchain"
"github.com/polarixa/replify/pkg/slogger"
"github.com/polarixa/replify/pkg/strchain"
)

// WithPage sets the page number for the [pagination] instance.
Expand Down
4 changes: 2 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package replify
import (
"reflect"

"github.com/sivaosorg/replify/pkg/encoding"
"github.com/sivaosorg/replify/pkg/fj"
"github.com/polarixa/replify/pkg/encoding"
"github.com/polarixa/replify/pkg/fj"
)

// JSONBodyParser parses the body of the wrapper as JSON and returns a fj.Context for the
Expand Down
2 changes: 1 addition & 1 deletion pkg/assert/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/sivaosorg/replify/pkg/ref"
"github.com/polarixa/replify/pkg/ref"
)

// AssertEqual compares two objects for equality and reports a test failure if they are not equal.
Expand Down
6 changes: 3 additions & 3 deletions pkg/codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A **zero-dependency** Go library for generating configurable-length random codes
## Installation

```bash
go get github.com/sivaosorg/replify/pkg/codegen
go get github.com/polarixa/replify/pkg/codegen
```

## Quick Start
Expand All @@ -29,7 +29,7 @@ import (
"fmt"
"log"

"github.com/sivaosorg/replify/pkg/codegen"
"github.com/polarixa/replify/pkg/codegen"
)

func main() {
Expand Down Expand Up @@ -148,7 +148,7 @@ code, err := codegen.Generate(
```go
package order

import "github.com/sivaosorg/replify/pkg/codegen"
import "github.com/polarixa/replify/pkg/codegen"

// Initialize once and reuse throughout the service.
var orderCodeGen = codegen.MustNew(
Expand Down
Loading