Rename "Self" to "Owner".
diff --git a/pagination/marker.go b/pagination/marker.go
index 6350e48..00ad88e 100644
--- a/pagination/marker.go
+++ b/pagination/marker.go
@@ -15,15 +15,15 @@
type MarkerPageBase struct {
LastHTTPResponse
- // A reference to the embedding struct.
- Self MarkerPage
+ // Owner is a reference to the embedding struct.
+ Owner MarkerPage
}
// NextPageURL generates the URL for the page of results after this one.
func (current MarkerPageBase) NextPageURL() (string, error) {
currentURL := current.URL
- mark, err := current.Self.LastMarker()
+ mark, err := current.Owner.LastMarker()
if err != nil {
return "", err
}
diff --git a/pagination/marker_test.go b/pagination/marker_test.go
index 9defcd1..742a1d1 100644
--- a/pagination/marker_test.go
+++ b/pagination/marker_test.go
@@ -58,7 +58,7 @@
createPage := func(r LastHTTPResponse) MarkerPage {
p := MarkerPageResult{MarkerPageBase{LastHTTPResponse: r}}
- p.MarkerPageBase.Self = p
+ p.MarkerPageBase.Owner = p
return p
}