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

Commit

Permalink
remove features incompatible with go1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tam7t committed May 16, 2022
1 parent ab80e63 commit f30413b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package main

import (
"context"
"errors"
"fmt"
"log"
"math/rand"
Expand Down Expand Up @@ -80,7 +79,7 @@ func main() {
Addr: ":" + port,
}
go func() {
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
if err := srv.ListenAndServe(); err != nil {
log.Printf("server error: %s", err)
}
}()
Expand Down

0 comments on commit f30413b

Please sign in to comment.