Skip to content

Instantly share code, notes, and snippets.

View JesseRhoads's full-sized avatar

Jesse Rhoads JesseRhoads

View GitHub Profile
@JesseRhoads
JesseRhoads / pal.go
Created March 23, 2018 19:17
Function to check if a string is a palindrome
/* Palindrome
recognizes palindromes composed of unicode characters.
*/
package palindrome
import "unicode/utf8"
@JesseRhoads
JesseRhoads / gist:9bf536d7280646a8439e2b7717309f01
Last active March 22, 2018 21:48
Print a diamond given a user-specified odd number
// Diamond Printer
// Prompt the user for the max number of asterisks, must be Odd
// Then print a symmetrical diamond, centered.
// Jesse Rhoads jesserhoads@gmail.com
package main
import (
"fmt"
"strings"