sanwebinfo / friendship-day-wishes

A simple Go application that displays Happy Friendship Day ASCII art and a text greeting with the recipient's name and a social media sharing URL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friendship Day Wishes

A simple Go application that displays Happy Friendship Day ASCII art and a text greeting with the recipient's name and a social media sharing URL.

Just My Fun Project πŸ™‚ and Learning Golang - Happy Friendship Day Wishes 2024

wishes@Your Name:~πŸ’š$


 β˜…β”€β–€β–ˆβ–ˆβ–€β–€β–€β–ˆ
 β˜…β”€β”€β–ˆβ–ˆβ–„β–ˆ
 β˜…β”€β”€β–ˆβ–ˆβ–€β–ˆ
 β˜…β”€β–„β–ˆβ–ˆ ANTASTIC Friend β˜…β˜…β˜…


 Friendship is the compass
 that guides us
 through life's storm

Happy Friendship Day ASCII Text Greeting Art - Friendship Day Greeting Generator With Name.

Features

  • Friendship Day ASCII art and Text Greeting with name
  • Shareable URL for social media sharing
  • Supports both HTML and plain text responses
  • Proper Error handling and Validations

Setup

  • Clone or Download the Repo
git clone https://github.com/sanwebinfo/friendship-day-wishes.git
cd friendship-day-wishes
  • Start the Server
go run wish.go

Usage

  • Send a GET request to the /wish endpoint with a name query parameter:
## Browser View

http://localhost:6054/wish/web/?name=YourName
  • cURL Request
curl "http://localhost:6054/wish/text?name=John-Doe"

or

curl -G -d "name=John Doe" http://localhost:6054/wish/text

or

curl -G --data-urlencode "name=John Doe" http://localhost:6054/wish/text
  • httpie
http -b GET "http://localhost:6054/wish/text" "name==John Doe"

HTML Response

If the Accept header includes text/html, you will get a formatted HTML response.

Plain Text Response

If the Accept header includes text/plain, you will get a plain text response.

Build Package

  • Run Make file to build a package for your Systems
make build

Packges Build for

Linux, Apple, Windows and Android - /makefile

  • Linux-386
  • Linux-arm-7
  • Linux-amd64
  • Linux-arm64
  • Andriod-arm64
  • windows-386
  • windows-amd64
  • darwin-amd64
  • darwin-arm64
chmod +x wish
./wish

LICENSE

MIT

About

A simple Go application that displays Happy Friendship Day ASCII art and a text greeting with the recipient's name and a social media sharing URL.

License:MIT License


Languages

Language:Go 93.0%Language:Makefile 7.0%