Skip to content

Commit

Permalink
Replace "/tinylib/" path with "/GannettDigital/".
Browse files Browse the repository at this point in the history
  • Loading branch information
gannett-ggreer committed Feb 4, 2022
1 parent fcc40ab commit d50c06f
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 41 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
MessagePack Code Generator [![Build Status](https://travis-ci.org/tinylib/msgp.svg?branch=master)](https://travis-ci.org/tinylib/msgp)
MessagePack Code Generator [![Build Status](https://travis-ci.org/GannettDigital/msgp.svg?branch=master)](https://travis-ci.org/GannettDigital/msgp)
=======

This is a code generation tool and serialization library for [MessagePack](http://msgpack.org). You can read more about MessagePack [in the wiki](http://github.com/tinylib/msgp/wiki), or at [msgpack.org](http://msgpack.org).
This is a code generation tool and serialization library for [MessagePack](http://msgpack.org). You can read more about MessagePack [in the wiki](http://github.com/GannettDigital/msgp/wiki), or at [msgpack.org](http://msgpack.org).

### Why?

- Use Go as your schema language
- Performance
- [JSON interop](http://godoc.org/github.com/tinylib/msgp/msgp#CopyToJSON)
- [User-defined extensions](http://github.com/tinylib/msgp/wiki/Using-Extensions)
- [JSON interop](http://godoc.org/github.com/GannettDigital/msgp/msgp#CopyToJSON)
- [User-defined extensions](http://github.com/GannettDigital/msgp/wiki/Using-Extensions)
- Type safety
- Encoding flexibility

Expand All @@ -22,7 +22,7 @@ In a source file, include the following directive:

The `msgp` command will generate serialization methods for all exported type declarations in the file.

You can [read more about the code generation options here](http://github.com/tinylib/msgp/wiki/Using-the-Code-Generator).
You can [read more about the code generation options here](http://github.com/GannettDigital/msgp/wiki/Using-the-Code-Generator).

### Use

Expand Down Expand Up @@ -56,7 +56,7 @@ of `*bufio.Writer` and `*bufio.Reader`, respectively.)
- Native support for Go's `time.Time`, `complex64`, and `complex128` types
- Generation of both `[]byte`-oriented and `io.Reader/io.Writer`-oriented methods
- Support for arbitrary type system extensions
- [Preprocessor directives](http://github.com/tinylib/msgp/wiki/Preprocessor-Directives)
- [Preprocessor directives](http://github.com/GannettDigital/msgp/wiki/Preprocessor-Directives)
- File-based dependency model means fast codegen regardless of source tree size.

Consider the following:
Expand All @@ -76,15 +76,15 @@ As long as the declarations of `MyInt` and `Data` are in the same file as `Struc
#### Extensions

MessagePack supports defining your own types through "extensions," which are just a tuple of
the data "type" (`int8`) and the raw binary. You [can see a worked example in the wiki.](http://github.com/tinylib/msgp/wiki/Using-Extensions)
the data "type" (`int8`) and the raw binary. You [can see a worked example in the wiki.](http://github.com/GannettDigital/msgp/wiki/Using-Extensions)

### Status

Mostly stable, in that no breaking changes have been made to the `/msgp` library in more than a year. Newer versions
of the code may generate different code than older versions for performance reasons. I (@philhofer) am aware of a
number of stability-critical commercial applications that use this code with good results. But, caveat emptor.

You can read more about how `msgp` maps MessagePack types onto Go types [in the wiki](http://github.com/tinylib/msgp/wiki).
You can read more about how `msgp` maps MessagePack types onto Go types [in the wiki](http://github.com/GannettDigital/msgp/wiki).

Here some of the known limitations/restrictions:

Expand Down
2 changes: 1 addition & 1 deletion _generated/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

func TestConvertFromEncodeError(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions _generated/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"time"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

//go:generate msgp -v -o generated.go
Expand Down Expand Up @@ -247,7 +247,7 @@ type ArrayConstants struct {
}

// Ensure non-msg struct tags work:
// https://github.com/tinylib/msgp/issues/201
// https://github.com/GannettDigital/msgp/issues/201

type NonMsgStructTags struct {
A []string `json:"fooJSON" msg:"fooMsgp"`
Expand Down
2 changes: 1 addition & 1 deletion _generated/def_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

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

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

func fillErrorCtxAsMap() *ErrorCtxAsMap {
Expand Down
2 changes: 1 addition & 1 deletion _generated/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package _generated

import (
"bytes"
"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
"reflect"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion _generated/omitempty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

func mustEncodeToJSON(o msgp.Encodable) string {
Expand Down
2 changes: 1 addition & 1 deletion gen/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

func encode(w io.Writer) *encodeGen {
Expand Down
2 changes: 1 addition & 1 deletion gen/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

func marshal(w io.Writer) *marshalGen {
Expand Down
2 changes: 1 addition & 1 deletion gen/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strconv"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

type sizeState uint8
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/tinylib/msgp
module github.com/GannettDigital/msgp

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion issue185_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"text/template"

"github.com/tinylib/msgp/gen"
"github.com/GannettDigital/msgp/gen"
)

// When stuff's going wrong, you'll be glad this is here!
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// -marshal = satisfy the `msgp.Marshaler` and `msgp.Unmarshaler` interfaces (default is true)
// -tests = generate tests and benchmarks (default is true)
//
// For more information, please read README.md, and the wiki at github.com/tinylib/msgp
// For more information, please read README.md, and the wiki at github.com/GannettDigital/msgp
//
package main

Expand All @@ -29,9 +29,9 @@ import (
"path/filepath"
"strings"

"github.com/tinylib/msgp/gen"
"github.com/tinylib/msgp/parse"
"github.com/tinylib/msgp/printer"
"github.com/GannettDigital/msgp/gen"
"github.com/GannettDigital/msgp/parse"
"github.com/GannettDigital/msgp/printer"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions msgp/defs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This package is the support library for the msgp code generator (http://github.com/tinylib/msgp).
// This package is the support library for the msgp code generator (http://github.com/GannettDigital/msgp).
//
// This package defines the utilites used by the msgp code generator for encoding and decoding MessagePack
// from []byte and io.Reader/io.Writer types. Much of this package is devoted to helping the msgp code
Expand All @@ -20,7 +20,7 @@
// an explicit de-serialization step.
//
// For additional tips, tricks, and gotchas, please visit
// the wiki at http://github.com/tinylib/msgp
// the wiki at http://github.com/GannettDigital/msgp
package msgp

const last4 = 0x0f
Expand Down
2 changes: 1 addition & 1 deletion msgp/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package msgp_test
import (
"bytes"
"crypto/rand"
"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
prand "math/rand"
"os"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion parse/directives.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"go/ast"
"strings"

"github.com/tinylib/msgp/gen"
"github.com/GannettDigital/msgp/gen"
)

const linePrefix = "//msgp:"
Expand Down
2 changes: 1 addition & 1 deletion parse/getast.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"strings"

"github.com/tinylib/msgp/gen"
"github.com/GannettDigital/msgp/gen"
)

// A FileSet is the in-memory representation of a
Expand Down
4 changes: 2 additions & 2 deletions parse/inline.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package parse
import (
"sort"

"github.com/tinylib/msgp/gen"
"github.com/GannettDigital/msgp/gen"
)

// This file defines when and how we
Expand Down Expand Up @@ -122,7 +122,7 @@ func (f *FileSet) propInline() {
}

const fatalloop = `detected infinite recursion in inlining loop!
Please file a bug at github.com/tinylib/msgp/issues!
Please file a bug at github.com/GannettDigital/msgp/issues!
Thanks!
`

Expand Down
14 changes: 7 additions & 7 deletions printer/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"io/ioutil"
"strings"

"github.com/tinylib/msgp/gen"
"github.com/tinylib/msgp/parse"
"github.com/GannettDigital/msgp/gen"
"github.com/GannettDigital/msgp/parse"
"golang.org/x/tools/imports"
)

Expand Down Expand Up @@ -82,7 +82,7 @@ func generate(f *parse.FileSet, mode gen.Method) (*bytes.Buffer, *bytes.Buffer,
outbuf := bytes.NewBuffer(make([]byte, 0, 4096))
writePkgHeader(outbuf, f.Package)

myImports := []string{"github.com/tinylib/msgp/msgp"}
myImports := []string{"github.com/GannettDigital/msgp/msgp"}
for _, imp := range f.Imports {
if imp.Name != nil {
// have an alias, include it.
Expand All @@ -100,9 +100,9 @@ func generate(f *parse.FileSet, mode gen.Method) (*bytes.Buffer, *bytes.Buffer,
testbuf = bytes.NewBuffer(make([]byte, 0, 4096))
writePkgHeader(testbuf, f.Package)
if mode&(gen.Encode|gen.Decode) != 0 {
writeImportHeader(testbuf, "bytes", "github.com/tinylib/msgp/msgp", "testing")
writeImportHeader(testbuf, "bytes", "github.com/GannettDigital/msgp/msgp", "testing")
} else {
writeImportHeader(testbuf, "github.com/tinylib/msgp/msgp", "testing")
writeImportHeader(testbuf, "github.com/GannettDigital/msgp/msgp", "testing")
}
testwr = testbuf
}
Expand All @@ -114,9 +114,9 @@ func writePkgHeader(b *bytes.Buffer, name string) {
b.WriteString(name)
b.WriteByte('\n')
// write generated code marker
// https://github.com/tinylib/msgp/issues/229
// https://github.com/GannettDigital/msgp/issues/229
// https://golang.org/s/generatedcode
b.WriteString("// Code generated by github.com/tinylib/msgp DO NOT EDIT.\n\n")
b.WriteString("// Code generated by github.com/GannettDigital/msgp DO NOT EDIT.\n\n")
}

func writeImportHeader(b *bytes.Buffer, imports ...string) {
Expand Down
2 changes: 1 addition & 1 deletion tinygotest/testdata/roundtrip/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"bytes"

"github.com/tinylib/msgp/msgp"
"github.com/GannettDigital/msgp/msgp"
)

//go:generate msgp
Expand Down
2 changes: 1 addition & 1 deletion tinygotest/testdata/simple_bytes_append/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/tinylib/msgp/msgp"
import "github.com/GannettDigital/msgp/msgp"

type Example struct {
I int
Expand Down
2 changes: 1 addition & 1 deletion tinygotest/testdata/simple_bytes_read/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/tinylib/msgp/msgp"
import "github.com/GannettDigital/msgp/msgp"

type Example struct {
I int
Expand Down

0 comments on commit d50c06f

Please sign in to comment.