reverse

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package reverse can reverse things, particularly strings.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(i int) int

Int returns the decimal reversal of the integer i.

func String

func String(s string) string

String returns its argument string reversed rune-wise left to right.

Example
package main

import (
	"fmt"

	"github.com/xoinstein/go-example/hello/reverse"
)

func main() {
	fmt.Println(reverse.String("hello"))
}
Output:

olleh

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL