Skip to content

Commit 97f6af5

Browse files
committed
internal: move PackageMeta to unit.go
No code changes are made - only code in motion. For golang/go#39629 Change-Id: I287f8628ca00c0fe3819912dcc77d1b90bd713f6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/252920 Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 2294379 commit 97f6af5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

internal/discovery.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ type Module struct {
103103
LegacyPackages []*LegacyPackage
104104
}
105105

106-
// PackageMeta represents the metadata of a package in a module version.
107-
type PackageMeta struct {
108-
Path string
109-
Name string
110-
Synopsis string
111-
IsRedistributable bool
112-
Licenses []*licenses.Metadata // metadata of applicable licenses
113-
}
114-
115106
// IndexVersion holds the version information returned by the module index.
116107
type IndexVersion struct {
117108
Path string

internal/unit.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ type Readme struct {
6969
Contents string
7070
}
7171

72+
// PackageMeta represents the metadata of a package in a module version.
73+
type PackageMeta struct {
74+
Path string
75+
Name string
76+
Synopsis string
77+
IsRedistributable bool
78+
Licenses []*licenses.Metadata // metadata of applicable licenses
79+
}
80+
7281
// A FieldSet is a bit set of struct fields. It is used to avoid reading large
7382
// struct fields from the data store. FieldSet is also the type of the
7483
// individual bit values. (Think of them as singleton sets.)

0 commit comments

Comments
 (0)