Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 328 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 328 Bytes

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