Comcast / Comcast/Ravel

thoughts on code examples [err]

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

was looking throuh some of the code files and i noticed you use

```go
if err != nil {
log.Fatalln(err)
}
```

in most samples, my thought on this is why not add modules? or a function in another module file to handel errors where the function looks similar to this

```go
func CheckErr(err error, format string) {
if err != nil {
if format == "log" {log.fatalln(err)}
}
}

```

and just advance the code from there, idk if thats just a me thing but i feel like it would be great to do in a sense of code optimization

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.