MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / String

Method String

plugin/hyaku/main.go:28–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (l *line) String() string {
29 b := binary.NewWriterF(func(w *binary.Writer) {
30 r := reflect.ValueOf(l).Elem().Type()
31 for i := 0; i < r.NumField(); i++ {
32 switch i {
33 case 0:
34 w.WriteString("●")
35 case 1:
36 w.WriteString("◉")
37 case 2, 3:
38 w.WriteString("○")
39 case 4, 5:
40 w.WriteString("◎")
41 }
42 w.WriteString(r.Field(i).Name)
43 w.WriteString(":")
44 w.WriteString((*[6]string)(unsafe.Pointer(l))[i])
45 w.WriteString("\n")
46 }
47 })
48 return binary.BytesToString(b)
49}
50
51var lines [100]*line
52

Callers 15

initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
kzFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
listWordsMethod · 0.45
initFunction · 0.45
initFunction · 0.45
cutMusicFunction · 0.45
gameMatchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected