package
module
Version:
v0.0.0-...-bc46615
Opens a new window with list of versions in this module.
Published: Aug 19, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
palindrome
A palindrome string checker
Install
go get -u github.com/gocrazygth/palindrome
Example
package main
import (
"fmt"
"github.com/gocrazygth/palindrome"
)
func main() {
a := pal.Check("racecar")
b := pal.Reverse("drawer")
fmt.Println(a)
fmt.Println(b)
}
Output:
true
reward
Documentation
¶
Check if the string is same as it is reversed
Reverses every character in the string
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.