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

Function DefaultVersion

module/module.go:78–86  ·  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

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