MCPcopy
hub / github.com/digitalocean/doctl / String

Method String

doit.go:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func (v Version) String() string {
109 var buffer bytes.Buffer
110 buffer.WriteString(fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch))
111 if v.Label != "" {
112 buffer.WriteString("-" + v.Label)
113 }
114
115 return buffer.String()
116}
117
118// Complete is the complete version for doit.
119func (v Version) Complete(lv LatestVersioner) string {

Callers 5

CompleteMethod · 0.95
CompleteJSONMethod · 0.95
TestVersionFunction · 0.45
userAgentFunction · 0.45
NewServerlessServiceFunction · 0.45

Calls 1

SprintfMethod · 0.80

Tested by 1

TestVersionFunction · 0.36