MCPcopy Create free account
hub / github.com/callicoder/golang-tutorials / Reverse

Function Reverse

07-packages/strings/reverse.go:8–12  ·  view source on GitHub ↗

Reverses a string * Since strings in Go are immutable, we first convert the string to a mutable array of runes ([]rune), perform the reverse operation on that, and then re-cast to a string. */

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

reverseRunesFunction · 0.85

Tested by

no test coverage detected