From 1905f7e442f05e3529c2a41f419b07c43f73f701 Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Fri, 17 Dec 2021 22:48:51 -0500 Subject: [PATCH] Update source to match output from gofmt 1.17 --- client_clone.go | 1 + client_clone_legacy.go | 1 + conn_write.go | 1 + conn_write_legacy.go | 1 + examples/echo/client.go | 1 + examples/echo/server.go | 1 + mask.go | 1 + mask_safe.go | 1 + trace.go | 1 + trace_17.go | 1 + 10 files changed, 10 insertions(+) diff --git a/client_clone.go b/client_clone.go index 4f0d9437..4179c7a0 100644 --- a/client_clone.go +++ b/client_clone.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.8 // +build go1.8 package websocket diff --git a/client_clone_legacy.go b/client_clone_legacy.go index babb007f..7e241a88 100644 --- a/client_clone_legacy.go +++ b/client_clone_legacy.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !go1.8 // +build !go1.8 package websocket diff --git a/conn_write.go b/conn_write.go index a509a21f..497467ad 100644 --- a/conn_write.go +++ b/conn_write.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.8 // +build go1.8 package websocket diff --git a/conn_write_legacy.go b/conn_write_legacy.go index 37edaff5..8501a233 100644 --- a/conn_write_legacy.go +++ b/conn_write_legacy.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !go1.8 // +build !go1.8 package websocket diff --git a/examples/echo/client.go b/examples/echo/client.go index bf0e6573..7d870bdf 100644 --- a/examples/echo/client.go +++ b/examples/echo/client.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build ignore // +build ignore package main diff --git a/examples/echo/server.go b/examples/echo/server.go index 61f3dd9b..f9a0b7b5 100644 --- a/examples/echo/server.go +++ b/examples/echo/server.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build ignore // +build ignore package main diff --git a/mask.go b/mask.go index 577fce9e..d0742bf2 100644 --- a/mask.go +++ b/mask.go @@ -2,6 +2,7 @@ // this source code is governed by a BSD-style license that can be found in the // LICENSE file. +//go:build !appengine // +build !appengine package websocket diff --git a/mask_safe.go b/mask_safe.go index 2aac060e..36250ca7 100644 --- a/mask_safe.go +++ b/mask_safe.go @@ -2,6 +2,7 @@ // this source code is governed by a BSD-style license that can be found in the // LICENSE file. +//go:build appengine // +build appengine package websocket diff --git a/trace.go b/trace.go index 834f122a..246a5d33 100644 --- a/trace.go +++ b/trace.go @@ -1,3 +1,4 @@ +//go:build go1.8 // +build go1.8 package websocket diff --git a/trace_17.go b/trace_17.go index 77d05a0b..f4be940a 100644 --- a/trace_17.go +++ b/trace_17.go @@ -1,3 +1,4 @@ +//go:build !go1.8 // +build !go1.8 package websocket