Skip to content

Commit

Permalink
chore(server): document and maintain (#42)
Browse files Browse the repository at this point in the history
This commit makes sure we thoroughly document how the server works and
applies some maintenance changes.

The most relevant changes are:

1. using io.ReadAll instead of ioutil.ReadAll;

2. dropping rand.Seed calls.

We can safely drop rand.Seed calls because:

> Deprecated: As of Go 1.20 there is no reason to call Seed
> with a random value. Programs that call Seed with a known value
> to get a specific sequence of results should use
> New(NewSource(seed)) to obtain a local random generator.

We use go1.20 in Dockerfile and go.mod.
  • Loading branch information
bassosimone authored Jan 29, 2024
1 parent 774002e commit ea928aa
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 41 deletions.
Loading

0 comments on commit ea928aa

Please sign in to comment.