pal

package module
v0.0.0-...-bc46615 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 0 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(s string) (b bool)

Check if the string is same as it is reversed

func Reverse

func Reverse(s string) (result string)

Reverses every character in the string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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