You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the latest active version
latest, err := client.LatestVersion(&fastly.LatestVersionInput{
ServiceID: serviceID,
})
if err != nil {
log.Fatal(err)
}
The comment states Get the latest active version
Not sure if the expectation is that it would fetch the latest active version, but client.LatestVersion will fetch the latest version, regardless of its state (active or draft).
We should consider providing a helper to get the latest active version - or an update to README to demonstrate the correct way to fetch the active version.
The text was updated successfully, but these errors were encountered:
In the README
The comment states
Get the latest active version
Not sure if the expectation is that it would fetch the latest active version, but
client.LatestVersion
will fetch the latest version, regardless of its state (active or draft).We should consider providing a helper to get the latest active version - or an update to README to demonstrate the correct way to fetch the active version.
The text was updated successfully, but these errors were encountered: