aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2019-11-25 16:15:07 -0500
committerJulie Qiu <julie@golang.org>2020-03-27 16:46:48 -0400
commitd080da43198252cfc9423e5dabbf8ce95bd46a5d (patch)
treebf3b34cf856d1a4a51c3a55cf02cf5d718b2676f /internal/testing/sample
parent059d3353d73874fc53bf86a89d0fe9ad4968a367 (diff)
downloadgo-x-pkgsite-d080da43198252cfc9423e5dabbf8ce95bd46a5d.tar.xz
internal: change Package.DocumentationHTML to string type
Previously Package.DocumentationHTML 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: I87784576e719d8aa666b0a21848a9ea6f10f8cf1 Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/600048 Reviewed-by: Robert Findley <rfindley@google.com> CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.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 a2167dda..9165623c 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -38,7 +38,7 @@ var (
Licenses = []*license.License{
{Metadata: LicenseMetadata[0], Contents: `Lorem Ipsum`},
}
- DocumentationHTML = []byte("This is the documentation HTML")
+ DocumentationHTML = "This is the documentation HTML"
PackageName = "foo"
PackagePath = "github.com/valid_module_name/foo"
V1Path = "github.com/valid_module_name/foo"