Go 1.11 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Go 1.11
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Go
1.11 applications will continue to run and receive traffic after their
deprecation date. We
recommend that you migrate to the latest supported version of Go.
Enabled returns whether an API's capabilities are enabled.
The wildcard "*" capability matches every capability of an API.
If the underlying RPC fails (if the package is unknown, for example),
false is returned and information is written to the application log.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Package google.golang.org/appengine/capability (v1.6.8)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.8 (latest)](/appengine/docs/legacy/standard/go111/reference/latest/capability)\n- [1.6.7](/appengine/docs/legacy/standard/go111/reference/1.6.7/capability) \n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/google.golang.org/appengine/capability). \n\u003cbr /\u003e\n\nPackage capability exposes information about outages and scheduled downtime\nfor specific API capabilities.\n\nThis package does not work in App Engine \"flexible environment\".\n\nExample: \n\n```scdoc\nif !capability.Enabled(c, \"datastore_v3\", \"write\") {\n // show user a different page\n}\n``` \n\nFunctions\n---------\n\n### func Enabled\n\n func Enabled(ctx https://pkg.go.dev/context.https://pkg.go.dev/context#Context, api, capability https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#bool\n\nEnabled returns whether an API's capabilities are enabled.\nThe wildcard \"\\*\" capability matches every capability of an API.\nIf the underlying RPC fails (if the package is unknown, for example),\nfalse is returned and information is written to the application log."]]