https://github.com/siddheshk02/go_quiz
A Beginners CLI development tutorial
https://github.com/siddheshk02/go_quiz
backend cli-app cobra-cli golang
Last synced: 8 months ago
JSON representation
A Beginners CLI development tutorial
- Host: GitHub
- URL: https://github.com/siddheshk02/go_quiz
- Owner: Siddheshk02
- License: other
- Created: 2022-11-09T10:38:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T16:22:10.000Z (over 3 years ago)
- Last Synced: 2025-04-25T08:08:18.862Z (about 1 year ago)
- Topics: backend, cli-app, cobra-cli, golang
- Language: Go
- Homepage: https://siddhesh-dev.co/getting-started-with-clis-using-golang
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go_Quiz

## Get the Beginners CLI development tutorial here
This is a simple CLI quiz game built usinh Golang and Cobra-CLI.
Command 1:
```
go_quiz
```
Output :
```
A Simple Quiz game CLI using Golang.
```
Command 2:
```
go_quiz -h
```
Output :
```
A Simple Quiz game CLI using Golang.
Usage:
go_quiz [flags]
go_quiz [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
start Starting a new Quiz
Flags:
-h, --help help for go_quiz
-t, --toggle Help message for toggle
Use "go_quiz [command] --help" for more information about a command.
```
# To start the Quiz :
```
go_quiz start
```
Output :
```
5+5 :
```
start entering the responses :)
if any of the reponse is incorrect,
Output :
```
.
.
.
8+3 : 1
Your Score is 3
```
And if all the entered responses are correct,
```
.
.
.
1+8 : 9
correct
Congrats!, you got all questions Correct
Your Score is 16
```