MCPcopy Create free account
hub / github.com/golang/appengine / DefaultVersion

Function DefaultVersion

v2/module/module.go:79–87  ·  view source on GitHub ↗

DefaultVersion returns the default version of the specified module. If module is the empty string, it means the default module.

(c context.Context, module string)

Source from the content-addressed store, hash-verified

77// DefaultVersion returns the default version of the specified module.
78// If module is the empty string, it means the default module.
79func DefaultVersion(c context.Context, module string) (string, error) {
80 req := &pb.GetDefaultVersionRequest{}
81 if module != "" {
82 req.Module = &module
83 }
84 res := &pb.GetDefaultVersionResponse{}
85 err := internal.Call(c, "modules", "GetDefaultVersion", req, res)
86 return res.GetVersion(), err
87}
88
89// Start starts the specified version of the specified module.
90// If either module or version are the empty string, it means the default.

Callers 1

TestDefaultVersionFunction · 0.70

Calls 2

GetVersionMethod · 0.95
CallFunction · 0.92

Tested by 1

TestDefaultVersionFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…