From d50c06fe7ecbbb39ee62bee88c5c0b0c9a64e129 Mon Sep 17 00:00:00 2001 From: George Greer Date: Fri, 4 Feb 2022 13:23:47 -0500 Subject: [PATCH] Replace "/tinylib/" path with "/GannettDigital/". --- README.md | 16 ++++++++-------- _generated/convert_test.go | 2 +- _generated/def.go | 4 ++-- _generated/def_test.go | 2 +- _generated/errorwrap_test.go | 2 +- _generated/gen_test.go | 2 +- _generated/omitempty_test.go | 2 +- gen/encode.go | 2 +- gen/marshal.go | 2 +- gen/size.go | 2 +- go.mod | 2 +- issue185_test.go | 2 +- main.go | 8 ++++---- msgp/defs.go | 4 ++-- msgp/file_test.go | 2 +- parse/directives.go | 2 +- parse/getast.go | 2 +- parse/inline.go | 4 ++-- printer/print.go | 14 +++++++------- tinygotest/testdata/roundtrip/main.go | 2 +- tinygotest/testdata/simple_bytes_append/main.go | 2 +- tinygotest/testdata/simple_bytes_read/main.go | 2 +- 22 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 1328ccaf..3e2023ea 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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: @@ -76,7 +76,7 @@ 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 @@ -84,7 +84,7 @@ Mostly stable, in that no breaking changes have been made to the `/msgp` library 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: diff --git a/_generated/convert_test.go b/_generated/convert_test.go index 7b67305e..c6cfa102 100644 --- a/_generated/convert_test.go +++ b/_generated/convert_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func TestConvertFromEncodeError(t *testing.T) { diff --git a/_generated/def.go b/_generated/def.go index 5165b49c..1325fcb0 100644 --- a/_generated/def.go +++ b/_generated/def.go @@ -4,7 +4,7 @@ import ( "os" "time" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) //go:generate msgp -v -o generated.go @@ -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"` diff --git a/_generated/def_test.go b/_generated/def_test.go index 5d2e80ff..0321d53a 100644 --- a/_generated/def_test.go +++ b/_generated/def_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func TestRuneEncodeDecode(t *testing.T) { diff --git a/_generated/errorwrap_test.go b/_generated/errorwrap_test.go index 62282fe9..7818f510 100644 --- a/_generated/errorwrap_test.go +++ b/_generated/errorwrap_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func fillErrorCtxAsMap() *ErrorCtxAsMap { diff --git a/_generated/gen_test.go b/_generated/gen_test.go index 7f7da034..96cc1afc 100644 --- a/_generated/gen_test.go +++ b/_generated/gen_test.go @@ -2,7 +2,7 @@ package _generated import ( "bytes" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" "reflect" "testing" "time" diff --git a/_generated/omitempty_test.go b/_generated/omitempty_test.go index 799e2986..2c428280 100644 --- a/_generated/omitempty_test.go +++ b/_generated/omitempty_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "testing" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func mustEncodeToJSON(o msgp.Encodable) string { diff --git a/gen/encode.go b/gen/encode.go index 74b96cd2..f9f5b169 100644 --- a/gen/encode.go +++ b/gen/encode.go @@ -5,7 +5,7 @@ import ( "io" "strings" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func encode(w io.Writer) *encodeGen { diff --git a/gen/marshal.go b/gen/marshal.go index fc5c5930..a5701d0d 100644 --- a/gen/marshal.go +++ b/gen/marshal.go @@ -5,7 +5,7 @@ import ( "io" "strings" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) func marshal(w io.Writer) *marshalGen { diff --git a/gen/size.go b/gen/size.go index e96e0319..a3d56c09 100644 --- a/gen/size.go +++ b/gen/size.go @@ -5,7 +5,7 @@ import ( "io" "strconv" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) type sizeState uint8 diff --git a/go.mod b/go.mod index 000801ca..682ad450 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tinylib/msgp +module github.com/GannettDigital/msgp go 1.14 diff --git a/issue185_test.go b/issue185_test.go index b866108a..f2c98d2d 100644 --- a/issue185_test.go +++ b/issue185_test.go @@ -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! diff --git a/main.go b/main.go index c68e6764..99d3158d 100644 --- a/main.go +++ b/main.go @@ -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 @@ -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 ( diff --git a/msgp/defs.go b/msgp/defs.go index c634eef1..8441b490 100644 --- a/msgp/defs.go +++ b/msgp/defs.go @@ -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 @@ -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 diff --git a/msgp/file_test.go b/msgp/file_test.go index 1cc01cec..d4d00733 100644 --- a/msgp/file_test.go +++ b/msgp/file_test.go @@ -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" diff --git a/parse/directives.go b/parse/directives.go index 9bd7c007..29ccec5f 100644 --- a/parse/directives.go +++ b/parse/directives.go @@ -5,7 +5,7 @@ import ( "go/ast" "strings" - "github.com/tinylib/msgp/gen" + "github.com/GannettDigital/msgp/gen" ) const linePrefix = "//msgp:" diff --git a/parse/getast.go b/parse/getast.go index cd9d2c9f..41275f00 100644 --- a/parse/getast.go +++ b/parse/getast.go @@ -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 diff --git a/parse/inline.go b/parse/inline.go index fb3df4f6..93c12243 100644 --- a/parse/inline.go +++ b/parse/inline.go @@ -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 @@ -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! ` diff --git a/printer/print.go b/printer/print.go index 755a815e..404d5c60 100644 --- a/printer/print.go +++ b/printer/print.go @@ -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" ) @@ -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. @@ -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 } @@ -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) { diff --git a/tinygotest/testdata/roundtrip/main.go b/tinygotest/testdata/roundtrip/main.go index 70a6663c..09800419 100644 --- a/tinygotest/testdata/roundtrip/main.go +++ b/tinygotest/testdata/roundtrip/main.go @@ -3,7 +3,7 @@ package main import ( "bytes" - "github.com/tinylib/msgp/msgp" + "github.com/GannettDigital/msgp/msgp" ) //go:generate msgp diff --git a/tinygotest/testdata/simple_bytes_append/main.go b/tinygotest/testdata/simple_bytes_append/main.go index c9a1cce3..73f69e05 100644 --- a/tinygotest/testdata/simple_bytes_append/main.go +++ b/tinygotest/testdata/simple_bytes_append/main.go @@ -1,6 +1,6 @@ package main -import "github.com/tinylib/msgp/msgp" +import "github.com/GannettDigital/msgp/msgp" type Example struct { I int diff --git a/tinygotest/testdata/simple_bytes_read/main.go b/tinygotest/testdata/simple_bytes_read/main.go index eddb1f05..25aea6d6 100644 --- a/tinygotest/testdata/simple_bytes_read/main.go +++ b/tinygotest/testdata/simple_bytes_read/main.go @@ -1,6 +1,6 @@ package main -import "github.com/tinylib/msgp/msgp" +import "github.com/GannettDigital/msgp/msgp" type Example struct { I int