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.
SetNumInstances sets the number of instances of the given module.version to the
specified value. If either module or version are the empty string it means the
default.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis package, \u003ccode\u003emodule\u003c/code\u003e, allows interaction with Google App Engine modules, including retrieving module identity information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDefaultVersion\u003c/code\u003e function retrieves the default version of a specified module, or the default module if no module is specified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eList\u003c/code\u003e function returns a list of all module names associated with the application.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage module instances by using the functions such as \u003ccode\u003eNumInstances\u003c/code\u003e to get the current instance count, and \u003ccode\u003eSetNumInstances\u003c/code\u003e to adjust the number of instances for a specific module and version.\u003c/p\u003e\n"],["\u003cp\u003eFunctions such as \u003ccode\u003eStart\u003c/code\u003e and \u003ccode\u003eStop\u003c/code\u003e permit for the starting or stopping a specified version of a module, respectively, and they allow the use of empty strings for the default module or version.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/module (v1.6.8)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.8 (latest)](/appengine/docs/legacy/standard/go111/reference/latest/module)\n- [1.6.7](/appengine/docs/legacy/standard/go111/reference/1.6.7/module) \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/module). \n\u003cbr /\u003e\n\nPackage module provides functions for interacting with modules.\n\nThe appengine package contains functions that report the identity of the app,\nincluding the module name. \n\nFunctions\n---------\n\n### func DefaultVersion\n\n func DefaultVersion(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nDefaultVersion returns the default version of the specified module.\nIf module is the empty string, it means the default module. \n\n### func List\n\n func List(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nList returns the names of modules belonging to this application. \n\n### func NumInstances\n\n func NumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#int, https://pkg.go.dev/builtin#error)\n\nNumInstances returns the number of instances of the given module/version.\nIf either argument is the empty string it means the default. \n\n### func SetNumInstances\n\n func SetNumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string, instances https://pkg.go.dev/builtin#int) https://pkg.go.dev/builtin#error\n\nSetNumInstances sets the number of instances of the given module.version to the\nspecified value. If either module or version are the empty string it means the\ndefault. \n\n### func Start\n\n func Start(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error\n\nStart starts the specified version of the specified module.\nIf either module or version are the empty string, it means the default. \n\n### func Stop\n\n func Stop(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error\n\nStop stops the specified version of the specified module.\nIf either module or version are the empty string, it means the default. \n\n### func Versions\n\n func Versions(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nVersions returns the names of the versions that belong to the specified module.\nIf module is the empty string, it means the default module."]]