package
0.0.0-20241209194135-874399dce24d
Repository: https://github.com/snipersap/goprojects.git
Documentation: pkg.go.dev

# README

ReadMe

This repo is the project decision-structures as described in the course Building Modern Web Applications with Go (Golang).

The repo creates a string slice of animals, loops over it and uses the switch-case to print appropriate statements. Then it uses the if-else structure to decide what to print.

How to test the repo?

Run the files main.go using the command go run main.go.

Run the tests with go test

Test Result:

In case of confusion, check the commits.

Expected output

Last updated 13.09.2023

2023/09/24 14:50:27 It's a cat!
2023/09/24 14:50:27 It's a dog!
2023/09/24 14:50:27 It's an elephant!
2023/09/24 14:50:27 Is giraffe an animal?
2023/09/24 14:50:27 Is Whale an animal?
2023/09/24 14:50:27 No idea what animal is this!
2023/09/24 14:50:27 It's a whale!

Report bugs or suggestions

Please use the Issues feature in github to raise one. There is no guarantee or promise to fix it, because, well, this repo is a project after all. However, all suggestions are welcome.

Disclaimer

Please use the code here at your own risk. This is a sample project, and may not always provide the expected outcome or result.