This is a cli application I built to ask my girlfriend to be my valentine. It shows a note with a yes or no prompt beneath. When you click on a yes, it plays the Cupcake song while showing the lyrics of the song on the screen.
val.mp4
- Clone this repo by running
git clone https://github.com/quamejnr/Val.git
on your terminal - Navigate to the repo by running
cd Val
then rungo run .
. This should run the code. Ensure you have Golang already installed
- You can change the note that's shown with the prompt by changing the
note
variable from line 19 to 26.
- Delete the cupcake song in the
assets/
folder and copy your song to theassets
folder. - Change
go playSong("assets/cupcake.mp3")
on line 56 to the name of your new filego playSong("assets/<file_name>")
- Change the lyrics assigned to the
lyrics
variable from line 30 to 40 to your new lyrics. - Change the title that appears when your song is being played from "The Cuppycake Song" to the name of your song on line 57.
huh.NewNote().Title("Name of your new song").Description(lyrics).Run()
- Save your file and run the code.