arya2004 / arya2004/gobanter

Use flags or config file instead of hardcoded defaults

Open
#4 1 comment 0 reactions 1 assignee Claimed by @zsbahtiar View on GitHub
go good first issue hacktoberfest websocket
Dominant language
Go
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### ⚙️ Use Flags or Config Instead of Hardcoded Defaults

In `main.go`, values like:

```go
port := "8080"
target := "World"
```

...are hardcoded. These should come from:

* Command-line flags (`flag.String(...)`)
* Or `.env` / config file using a lib like `spf13/viper`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.