aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2019-11-17 18:26:32 -0500
committerJulie Qiu <julie@golang.org>2020-03-27 16:46:48 -0400
commit9dd390f2db22cddeb2575b65cfe0e039cf6e0f76 (patch)
tree3f2eeb43ca4da9efbbd37153010ba0e99b33ea4f /internal/testing/sample
parent2a84293dd9893ad9d8d967a18069af6a29bc2ce9 (diff)
downloadgo-x-pkgsite-9dd390f2db22cddeb2575b65cfe0e039cf6e0f76.tar.xz
internal: change VersionInfo.ReadmeContents to string type
Previously VersionInfo.ReadmeContents was a type []byte. This is now changed to a type string, so that is matches its database type (which is TEXT). Updates b/144650806 Change-Id: I90e24dc8184b79a39f526e50ed1f75fd6d3895aa Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/600046 Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/testing/sample')
-rw-r--r--internal/testing/sample/sample.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index e8adc973..d33315af 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -45,7 +45,7 @@ var (
Imports = []string{"path/to/bar", "fmt"}
Synopsis = "This is a package synopsis"
ReadmeFilePath = "README.md"
- ReadmeContents = []byte("readme")
+ ReadmeContents = "readme"
VersionType = version.TypeRelease
GOOS = "linux"
GOARCH = "amd64"