format using go-1.19

This commit is contained in:
trinity-1686a 2022-10-09 16:36:22 +02:00
parent 9ce1de4eee
commit 5ef5142bb0
11 changed files with 34 additions and 27 deletions

View file

@ -1,6 +1,6 @@
//Package for a safer logging wrapper around the standard logging package
//import "git.torproject.org/pluggable-transports/snowflake.git/v2/common/safelog"
// import "git.torproject.org/pluggable-transports/snowflake.git/v2/common/safelog"
package safelog
import (

View file

@ -6,7 +6,7 @@ import (
"testing"
)
//Check to make sure that addresses split across calls to write are still scrubbed
// Check to make sure that addresses split across calls to write are still scrubbed
func TestLogScrubberSplit(t *testing.T) {
input := []byte("test\nhttp2: panic serving [2620:101:f000:780:9097:75b1:519f:dbb8]:58344: interface conversion: *http2.responseWriter is not http.Hijacker: missing method Hijack\n")
@ -49,7 +49,7 @@ func TestLogScrubberSplit(t *testing.T) {
}
//Test the log scrubber on known problematic log messages
// Test the log scrubber on known problematic log messages
func TestLogScrubberMessages(t *testing.T) {
for _, test := range []struct {
input, expected string