README

strrv

Build Status Codecov Go Report Card Go docs

Strrev is a package containing functions for reversing strings.

Why

The Go stdlib does not contain a string reversing function.

Go docs

Get the go docs at: godoc.org/4d63.com/strrev

Documentation

Overview

    Package strrev exports functions for reversing strings.

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Reverse

    func Reverse(s string) string

      Reverse reverses the given string, maintaining the bytes within any multibyte unicode characters in their existing order so that the character is still rendered correctly.

      Example
      Output:
      
      g丂edcba
      

      func ReverseBytes

      func ReverseBytes(b []byte) []byte

        ReverseBytes reverses the given byte slice, maintaining the bytes within any multibyte unicode characters in their existing order so that the character is still rendered correctly.

        func ReverseCombining

        func ReverseCombining(s string) string

          ReverseCombining reverses the given string, maintaining the bytes within any multibyte and combining unicode characters in their existing order so that the character is still rendered correctly.

          Example
          Output:
          
          gf̝́edcba
          

          func ReverseCombiningBytes

          func ReverseCombiningBytes(b []byte) []byte

            ReverseCombiningBytes reverses the given byte slice, maintaining the bytes within any multibyte and combining unicode characters in their existing order so that the character is still rendered correctly.

            Types

            This section is empty.

            Source Files