MCPcopy
hub / github.com/davyxu/tabtoy / String

Method String

v2/exprvm/cmd.go:14–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (self *Command) String() string {
15
16 var sb strings.Builder
17
18 sb.WriteString(self.Type.String())
19
20 if len(self.Operand) > 0 {
21 sb.WriteString(" ")
22 for index, operand := range self.Operand {
23 if index > 0 {
24 sb.WriteString(", ")
25 }
26 sb.WriteString(fmt.Sprintf("%v", operand))
27 }
28 }
29
30 return sb.String()
31}
32
33type Chunk struct {
34 Commands []Command

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected