100-projects

View the Project on GitHub rlanier-webdev/100-projects

README

This is a simple Go program that generates random quotes and serves them through an HTTP server. It reads quote data from a file named “quotes.txt” and populates a slice of Quote structs, each representing a quote with an ID, text, author, and movie.

Features:

How to Use:

  1. Ensure you have Go installed on your machine.
  2. Create a file named “quotes.txt” and populate it with quotes in the format mentioned above.
  3. Run the program by executing the command go run main.go.
  4. Open a web browser and navigate to http://localhost:8000 to view a random quote.

Files:

Dependencies:

Notes: