MCPcopy Create free account
hub / github.com/derekbanas/Go-Tutorial / IntArrToStrArr

Function IntArrToStrArr

app/mypackage/mypackage.go:12–18  ·  view source on GitHub ↗

Function name is uppercase so it can be exported

(intArr []int)

Source from the content-addressed store, hash-verified

10
11// Function name is uppercase so it can be exported
12func IntArrToStrArr(intArr []int) []string {
13 var strArr []string
14 for _, i := range intArr {
15 strArr = append(strArr, strconv.Itoa(i))
16 }
17 return strArr
18}
19
20// We capitalize what we want to export and use
21// lowercase on what we don't. We don't want the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected