Skip to content

Simple Golang quiz design, that loads questions from csv file to ask user. User can also provide a file of their own content to the program. At the end of the quiz, users' will see their quiz scores

License

Notifications You must be signed in to change notification settings

devvspaces/golang_quiz_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang_quiz_project

Simple Golang quiz design, that loads questions from csv file to ask user. User can also provide a file of their own content to the program. At the end of the quiz, users' will see their quiz scores

Features

  • Users can provide path to their own quiz file as a flag when running the package
  • Users can see their scores and failed at the end of the quiz
  • New Feature: You can provide an argument to shuffle your quiz
  • New Feature: Quiz uses a timer, and users can set timer to start quiz

Usage

Checking help to see flags documentations

go run main.go -h

Running by default using default questions, timer and shuffle

go run main.go

Running with your own questions This will load the quesions from the path you have provided

go run main.go -c "Path to your valid questions csv file"

Running with your own timer Sets timer to 40 seconds

go run main.go -d 40

Shuffling questions Uses flag to shuffle questions in random order

go run main.go -s

About

Simple Golang quiz design, that loads questions from csv file to ask user. User can also provide a file of their own content to the program. At the end of the quiz, users' will see their quiz scores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages