chore: upgrade to Go 1.20 (#5993)

This commit is contained in:
andig 2023-02-12 13:18:53 +01:00 • committed by GitHub
parent e6f8939ee7
commit 60ebd9e585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 589 additions and 144 deletions

View file

@ -5,8 +5,6 @@ import (
"io"
"io/fs"
"log"
"math/rand"
"time"
"github.com/evcc-io/evcc/cmd"
"github.com/evcc-io/evcc/server/assets"
@ -23,9 +21,6 @@ var (
// init loads embedded assets unless live assets are already loaded
func init() {
// TODO remove this once Go 1.20 is out with it.
rand.Seed(time.Now().UnixNano())
if !assets.Live() {
var err error