Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Scanln only accepts a bare y + clear the stream

Open Beginner friendly
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
cli

Research direction

The issue names files.go and command.go as the places to change. Start by finding where the accept/reject prompt reads user input and how it currently matches 'y'. Done when 'yes' and '1' accept, 'no' and '0' reject, and trailing text such as 'please' is consumed from the input rather than left in the stream. The issue names no test file, so add a case for each input form.

Written by the indexing model from the issue text.

Description

enhancement good first issue

##What
Want to increase the accept/reject options and clear the stream.

##Where
files.go and command.go

##Fixes
Want to accept 'yes' and 1, reject 'no', 0. Also if someone writes 'y please' it sees the y accepts but the please stays in the stream. Makes sure that it is cleared from the stream

Dominant language
Go
Stars
1
Forks
2
Avg merge
1h 46m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Edwin-metcalf/MetCode

All issues in Edwin-metcalf/MetCode

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.