You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidates useful formulas for starters of golang programming
Packages
Palindrome - checks if the value given is palindrome or not
Power Formula - One of the science formula. It's used to calculate the power from a given work and time values
Stair Case (Hacker Rank Solution) - prints a staircase of size n.
Concurrency Package - useable interface for any concurrent calls.
Goserve Package - build http service to start your API with the support of injecting certs and reading config from settings.yaml
Email - send email by using our prebuilt function, no need to code manually for email just instantiate the package and pass the required paramaters and it should work
Installation
go get github.com/MakMoinee/go-mith
Sample Code
import (
"fmt""github.com/MakMoinee/go-mith/pkg/palindrome"
)
funcmain() {
fmt.Println("Starting main.go")
// Testing palindrome// Pass Palindrome Numbernum1:=121fmt.Println(palindrome.IsNumberPalindrome(num1)) // It must print truestr1:="aabbaa"fmt.Println(palindrome.IsStringPalindrome(str1)) // it must print true
}