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\u003eThe \u003ccode\u003emodule\u003c/code\u003e package provides functions for interacting with and managing modules within the application environment.\u003c/p\u003e\n"],["\u003cp\u003eIt allows retrieving the default version of a specified module or the default module itself via the \u003ccode\u003eDefaultVersion\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThe package offers functionalities to list all module names associated with the application using the \u003ccode\u003eList\u003c/code\u003e function and all the versions of a module via the \u003ccode\u003eVersions\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eUsers can manage the number of instances for a particular module and version using \u003ccode\u003eNumInstances\u003c/code\u003e and \u003ccode\u003eSetNumInstances\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStart\u003c/code\u003e and \u003ccode\u003eStop\u003c/code\u003e functions enable the control of starting and stopping specific versions of modules.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/module (v1.6.7)\n\nVersion 1.6.7keyboard_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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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."]]