Skip to content

Go fmt project. #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions log.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package concurrent

import (
"os"
"log"
"io/ioutil"
"log"
"os"
)

// ErrorLogger is used to print out error, can be set to writer other than stderr
var ErrorLogger = log.New(os.Stderr, "", 0)

// InfoLogger is used to print informational message, default to off
var InfoLogger = log.New(ioutil.Discard, "", 0)
var InfoLogger = log.New(ioutil.Discard, "", 0)
2 changes: 1 addition & 1 deletion unbounded_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package concurrent
import (
"context"
"fmt"
"reflect"
"runtime"
"runtime/debug"
"sync"
"time"
"reflect"
)

// HandlePanic logs goroutine panic by default
Expand Down
1 change: 1 addition & 0 deletions unbounded_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"time"

"github.com/modern-go/concurrent"
)

Expand Down