• Respawnz's avatar
    原书此处有误,按照原著183页正文里应该是7.14 (#604) · 4a084515
    Respawnz authored
    page:183
    Exercise 7.14: string_reverse.go:Write a program that reverses a string, so “Google” is printed as ” elgooG”. (Hint: use a slice of bytes and conversions.)If you coded a solution with two slices, try a variant which uses only one (Hint: use swapping) If you want to be able to reverse Unicode-strings: use [ ]int !
    4a084515