Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor encoding packages to be nested under common package #242

Merged
merged 2 commits into from
Dec 17, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public final class SmithyGoDependency {
public static final GoDependency SMITHY_HTTP_TRANSPORT = smithy("transport/http", "smithyhttp");
public static final GoDependency SMITHY_MIDDLEWARE = smithy("middleware");
public static final GoDependency SMITHY_TIME = smithy("time", "smithytime");
public static final GoDependency SMITHY_HTTP_BINDING = smithy("httpbinding");
public static final GoDependency SMITHY_JSON = smithy("json", "smithyjson");
public static final GoDependency SMITHY_HTTP_BINDING = smithy("encoding/httpbinding");
public static final GoDependency SMITHY_JSON = smithy("encoding/json", "smithyjson");
public static final GoDependency SMITHY_XML = smithy("encoding/xml", "smithyxml");
public static final GoDependency SMITHY_IO = smithy("io", "smithyio");
public static final GoDependency SMITHY_LOGGING = smithy("logging");
public static final GoDependency SMITHY_PTR = smithy("ptr");
public static final GoDependency SMITHY_RAND = smithy("rand", "smithyrand");
public static final GoDependency SMITHY_TESTING = smithy("testing", "smithytesting");
public static final GoDependency SMITHY_XML = smithy("xml", "smithyxml");
public static final GoDependency SMITHY_WAITERS = smithy("waiter", "smithywaiter");

public static final GoDependency GO_CMP = goCmp("cmp");
Expand Down Expand Up @@ -118,7 +118,7 @@ private static GoDependency relativePackage(
private static final class Versions {
private static final String GO_STDLIB = "1.15";
private static final String GO_CMP = "v0.5.4";
private static final String SMITHY_GO = "v0.4.1-0.20201208232924-b8cdbaa577ff";
private static final String SMITHY_GO = "v0.4.1-0.20201216214517-20e212c92831";
private static final String GO_JMESPATH = "v0.4.0";
}
}
4 changes: 4 additions & 0 deletions encoding/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Package encoding provides utilities for encoding values for specific
// document encodings.

package encoding
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion json/encoder_test.go → encoding/json/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/awslabs/smithy-go/json"
"github.com/awslabs/smithy-go/encoding/json"
)

func TestEncoder(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion json/value.go → encoding/json/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/big"
"strconv"

"github.com/awslabs/smithy-go/internal/encoding"
"github.com/awslabs/smithy-go/encoding"
)

// Value represents a JSON Value type
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion xml/encoder_test.go → encoding/xml/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"testing"

"github.com/awslabs/smithy-go/xml"
"github.com/awslabs/smithy-go/encoding/xml"
)

var root = xml.StartElement{Name: xml.Name{Local: "root"}}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion xml/value.go → encoding/xml/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/big"
"strconv"

"github.com/awslabs/smithy-go/internal/encoding"
"github.com/awslabs/smithy-go/encoding"
)

// Value represents an XML Value type
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions mediatype.go

This file was deleted.