ctxString converts the incoming interface{} slice into a single string, without using fmt under tinygo
(ctx []interface{})
| 9 | // ctxString converts the incoming interface{} slice into a single string, |
| 10 | // without using fmt under tinygo |
| 11 | func ctxString(ctx []interface{}) string { |
| 12 | out := "" |
| 13 | for idx, cv := range ctx { |
| 14 | if idx > 0 { |
| 15 | out += "/" |
| 16 | } |
| 17 | out += ifToStr(cv) |
| 18 | } |
| 19 | return out |
| 20 | } |
| 21 | |
| 22 | type stringer interface { |
| 23 | String() string |