<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-pkgsite/internal/api/types.go, branch main</title>
<subtitle>Fork of golang.org/x/pkgsite with my patches.</subtitle>
<id>http://git.kilabit.info/go-x-pkgsite/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go-x-pkgsite/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/'/>
<updated>2026-04-09T20:23:05Z</updated>
<entry>
<title>internal/api: refactor error handling to increase consistency</title>
<updated>2026-04-09T20:23:05Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-04-09T18:48:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=ee3de85430431a53d070e4712a5caa9ddcc28628'/>
<id>urn:sha1:ee3de85430431a53d070e4712a5caa9ddcc28628</id>
<content type='text'>
- Refactored error handling to avoid leaking internal implementation
  details. Database and system errors are masked by falling back to
  standard HTTP statuses but still logging the entire error context.
- User facing error messages can now be specified within the Error
  struct.
- Added helpers in types.go to simplify error construction.
- Updated ServeModuleVersions to explicitly return 404 when no versions
  are found.
- Expanded test coverage in api_test.go to include 404 and 400 edge
  cases.

Change-Id: I89c4be3941126c15df6aefdd21e4bbd2d3b23be1
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764820
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: add support for readme and licenses in ServeModule</title>
<updated>2026-04-07T16:23:15Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-04-07T14:44:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=3c8abd6a69a5031ca55e55d16e725476f1d69cba'/>
<id>urn:sha1:3c8abd6a69a5031ca55e55d16e725476f1d69cba</id>
<content type='text'>
- Utilize conditional fieldset in GetUnit to efficiently retrieve readme
  and license fields.
- Modify Module type to include HasGoMod.

Change-Id: Id22ac3f2485392749742332701d2e913f047b3da
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/763401
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: consolidate error response handling for all handlers</title>
<updated>2026-04-02T02:31:36Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-24T19:38:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=aed8d2b9be2361625f8b305b91885f7c1a710f07'/>
<id>urn:sha1:aed8d2b9be2361625f8b305b91885f7c1a710f07</id>
<content type='text'>
- Ensure that all errors are wrapped correctly and served as a json
  error response.

Change-Id: I588552c755fb2135916da95dec6d37238d030d39
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/758821
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>internal/api: tweaks</title>
<updated>2026-03-18T19:14:22Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2026-03-18T17:27:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=71f5bef85c18c92a4652faea046caaadbb0d4969'/>
<id>urn:sha1:71f5bef85c18c92a4652faea046caaadbb0d4969</id>
<content type='text'>
- Minor doc changes.

- Slight code reorg.

- Use new reflect.Pointer over reflect.Ptr.

Change-Id: If1a6bb1d335f32a119cc8b4487e3eacbcd6b6431
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/756420
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>internal/api: add error type</title>
<updated>2026-03-12T02:16:34Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T20:35:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=ebeca97f019584573944ae4bf09c50616b5565e7'/>
<id>urn:sha1:ebeca97f019584573944ae4bf09c50616b5565e7</id>
<content type='text'>
- This new error type should also capture alternative candidates given
  an ambiguous package path.

Change-Id: I748cecdcc9d7656d4ea4d148dff090e230676f08
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754500
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Hyang-Ah Hana Kim &lt;hyangah@gmail.com&gt;
</content>
</entry>
<entry>
<title>internal/api: define new API types</title>
<updated>2026-03-06T13:20:53Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-02-25T17:14:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=fd3717b20fe8bcec3503ec0238a973a719e3931b'/>
<id>urn:sha1:fd3717b20fe8bcec3503ec0238a973a719e3931b</id>
<content type='text'>
- Defined comprehensive types to represent return structures for
  upcoming REST API.

Change-Id: Ie46aef2a4677daec9e5bb18c2ecd08cee8cb3c32
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/749120
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Hyang-Ah Hana Kim &lt;hyangah@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
</content>
</entry>
</feed>
