Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from google/mod-update
Browse files Browse the repository at this point in the history
support go1.15+
  • Loading branch information
tam7t authored May 16, 2022
2 parents f30413b + ef02b23 commit da14b6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
fail-fast: false
matrix:
go: [
'1.12',
'1.13',
'1.14',
'1.15'
'1.15',
'1.16',
'1.17',
'1.18'
]

name: unit
Expand Down
3 changes: 2 additions & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package main

import (
"context"
"errors"
"fmt"
"log"
"math/rand"
Expand Down Expand Up @@ -79,7 +80,7 @@ func main() {
Addr: ":" + port,
}
go func() {
if err := srv.ListenAndServe(); err != nil {
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Printf("server error: %s", err)
}
}()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/google/go-metrics-stackdriver

go 1.12
go 1.15

require (
cloud.google.com/go v0.101.1 // indirect
Expand Down

0 comments on commit da14b6e

Please sign in to comment.