stringutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package stringutil demonstrates how to define a package besides main. It's from the tutorial "How to Write Go Code" in https://golang.org/doc/code.html

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse(s string) string
Example
s := "abcdefg"
s2 := Reverse(s)
fmt.Println(s, s2)
Output:

abcdefg gfedcba

Types

This section is empty.

Jump to

Keyboard shortcuts

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