Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): document and maintain #42

Merged
merged 10 commits into from
Jan 29, 2024
Merged

chore(server): document and maintain #42

merged 10 commits into from
Jan 29, 2024

Conversation

bassosimone
Copy link
Member

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.

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.
@bassosimone bassosimone merged commit ea928aa into main Jan 29, 2024
9 checks passed
@bassosimone bassosimone deleted the locatev2 branch January 29, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant