Skip to content

Commit

Permalink
replace to armosec
Browse files Browse the repository at this point in the history
  • Loading branch information
Bezalel Brandwine committed Jul 26, 2021
1 parent 22031f9 commit 86bd855
Show file tree
Hide file tree
Showing 35 changed files with 52 additions and 48 deletions.
2 changes: 1 addition & 1 deletion benchmarks/benchmarks_large.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package benchmarks
import (
"strconv"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

type DSUser struct {
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/benchmarks_medium.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package benchmarks

import "github.com/francoispqt/gojay"
import "github.com/armosec/gojay"

// Response from Clearbit API. Size: 2.4kb
var MediumFixture = []byte(`{
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/benchmarks_small.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package benchmarks

import "github.com/francoispqt/gojay"
import "github.com/armosec/gojay"

var SmallFixture = []byte(`{"st": 1,"sid": 486,"tt": "active","gr": 0,"uuid": "de305d54-75b4-431b-adb2-eb6b9e546014","ip": "127.0.0.1","ua": "user_agent","tz": -6,"v": 1}`)

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/decoder/decoder_bench_float_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

var bigf = []byte(`0.00058273999999999999`)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_bench_large_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package benchmarks
import (
"testing"

"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/buger/jsonparser"
"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_bench_medium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"

"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/buger/jsonparser"
"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_bench_small_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
_ "fmt"
"testing"

"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/buger/jsonparser"
"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_large_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package benchmarks
import (
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_medium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package benchmarks
import (
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/decoder/decoder_small_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package benchmarks
import (
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions benchmarks/encoder/encoder_bench_large_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/encoder/encoder_bench_medium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/encoder/encoder_bench_small_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"testing"

"github.com/francoispqt/gojay"
"github.com/francoispqt/gojay/benchmarks"
"github.com/armosec/gojay"
"github.com/armosec/gojay/benchmarks"
jsoniter "github.com/json-iterator/go"
"github.com/mailru/easyjson"
)
Expand Down
2 changes: 1 addition & 1 deletion decode_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

func ExampleUnmarshal_string() {
Expand Down
2 changes: 1 addition & 1 deletion encode_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

func ExampleMarshal_string() {
Expand Down
2 changes: 1 addition & 1 deletion examples/encode-decode-map/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"strings"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

// define our custom map type implementing MarshalerJSONObject and UnmarshalerJSONObject
Expand Down
2 changes: 1 addition & 1 deletion examples/fuzz/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package fuzz

import (
"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

type user struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/http-benchmarks/gojay/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"net/http"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/http-json/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

type message struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/client/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/francoispqt/gojay/examples/websocket/comm"
"github.com/armosec/gojay/examples/websocket/comm"
"golang.org/x/net/websocket"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/comm/comm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"log"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
"golang.org/x/net/websocket"
)

Expand Down
6 changes: 3 additions & 3 deletions examples/websocket/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"log"
"strconv"

"github.com/francoispqt/gojay/examples/websocket/client"
"github.com/francoispqt/gojay/examples/websocket/comm"
"github.com/francoispqt/gojay/examples/websocket/server"
"github.com/armosec/gojay/examples/websocket/client"
"github.com/armosec/gojay/examples/websocket/comm"
"github.com/armosec/gojay/examples/websocket/server"
)

func createServer(done chan error) {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/francoispqt/gojay/examples/websocket/comm"
"github.com/armosec/gojay/examples/websocket/comm"
"golang.org/x/net/websocket"
)

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/francoispqt/gojay
module github.com/armosec/gojay

go 1.12

Expand Down
3 changes: 2 additions & 1 deletion gojay/codegen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"os"
"path/filepath"
"strings"

"github.com/viant/toolbox"
)

const gojayPackage = "github.com/francoispqt/gojay"
const gojayPackage = "github.com/armosec/gojay"

// Generator holds the content to generate the gojay code
type Generator struct {
Expand Down
2 changes: 1 addition & 1 deletion gojay/codegen/test/annotated_struct/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gojay/codegen/test/annotated_struct/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"testing"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion gojay/codegen/test/basic_struct/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gojay/codegen/test/basic_struct/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"testing"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion gojay/codegen/test/embedded_struct/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions gojay/codegen/test/embedded_struct/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package embedded_struct

import (
"bytes"
"github.com/francoispqt/gojay"
"testing"

"github.com/armosec/gojay"
"github.com/stretchr/testify/assert"
"github.com/viant/assertly"
"testing"
)

func TestMessage_Unmarshal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion gojay/codegen/test/pooled_struct/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions gojay/codegen/test/pooled_struct/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package pooled_struct

import (
"bytes"
"github.com/francoispqt/gojay"
"testing"

"github.com/armosec/gojay"
"github.com/stretchr/testify/assert"
"github.com/viant/assertly"
"testing"
)

func TestMessage_Unmarshal(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion gojay/gojay.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"flag"
"github.com/francoispqt/gojay/gojay/codegen"
"log"

"github.com/armosec/gojay/gojay/codegen"
)

var pkg = flag.String("pkg", "", "the package name of the generated file")
Expand Down
2 changes: 1 addition & 1 deletion gojay_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/francoispqt/gojay"
"github.com/armosec/gojay"
)

type User struct {
Expand Down

0 comments on commit 86bd855

Please sign in to comment.