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

x/pkgsite: add GetReadme function #41018

julieqiu opened this issue Aug 24, 2020 · 1 comment

x/pkgsite: add GetReadme function #41018

julieqiu opened this issue Aug 24, 2020 · 1 comment


Copy link

@julieqiu julieqiu commented Aug 24, 2020

As part of the new data model migration (#39629), we need to add a function to fetch a README for a give path_id.

The function signature will be:

 GetReadme(ctx context.Context, pathID int) (_ *internal.Readme, err error)

The function will execute the query below:

  path_id = $1
@gopherbot gopherbot added this to the Unreleased milestone Aug 24, 2020
@julieqiu julieqiu changed the title x/pkgsite: add GetReadMe function x/pkgsite: add GetReadme function Aug 24, 2020
Copy link

@gopherbot gopherbot commented Aug 25, 2020

Change mentions this issue: internal/postgres: split GetDirectory into multiple functions

gopherbot pushed a commit to golang/pkgsite that referenced this issue Aug 26, 2020
GetDirectory is split into several functions. These functions are
intended to be exported in future CLs.

For golang/go#39629
For golang/go#41017
For golang/go#41018

Change-Id: I78edfc2ab47e9947d8a8a6400460413ce0e64180
Run-TryBot: Julie Qiu <>
TryBot-Result: kokoro <>
Reviewed-by: Jonathan Amsterdam <>
@julieqiu julieqiu closed this Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants