From b331371a6585b6a0cba678b2deba332e470a478b Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 11 Dec 2021 23:20:53 +0100 Subject: format: reformat code with go 1.17 There was a change in how build tags are formatted. Use this as new reference. Link: https://go.dev/doc/go1.17#gofmt Signed-off-by: Robin Jarry --- lib/keepalive_dummy.go | 3 ++- lib/keepalive_linux.go | 3 ++- worker/handler_notmuch.go | 3 ++- worker/notmuch/eventhandlers.go | 3 ++- worker/notmuch/events.go | 3 ++- worker/notmuch/lib/database.go | 3 ++- worker/notmuch/lib/thread.go | 3 ++- worker/notmuch/message.go | 3 ++- worker/notmuch/worker.go | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/keepalive_dummy.go b/lib/keepalive_dummy.go index 205b577b..d455a426 100644 --- a/lib/keepalive_dummy.go +++ b/lib/keepalive_dummy.go @@ -1,4 +1,5 @@ -//+build !linux +//go:build !linux +// +build !linux package lib diff --git a/lib/keepalive_linux.go b/lib/keepalive_linux.go index 0dc32850..48113388 100644 --- a/lib/keepalive_linux.go +++ b/lib/keepalive_linux.go @@ -1,4 +1,5 @@ -//+build linux +//go:build linux +// +build linux package lib diff --git a/worker/handler_notmuch.go b/worker/handler_notmuch.go index 5e9c166d..8944d281 100644 --- a/worker/handler_notmuch.go +++ b/worker/handler_notmuch.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package worker diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index 976cbfd4..3daabda3 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package notmuch diff --git a/worker/notmuch/events.go b/worker/notmuch/events.go index 2140d680..b3542279 100644 --- a/worker/notmuch/events.go +++ b/worker/notmuch/events.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package notmuch diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go index ad670c54..46a39bc5 100644 --- a/worker/notmuch/lib/database.go +++ b/worker/notmuch/lib/database.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package lib diff --git a/worker/notmuch/lib/thread.go b/worker/notmuch/lib/thread.go index 297260d8..33bf872c 100644 --- a/worker/notmuch/lib/thread.go +++ b/worker/notmuch/lib/thread.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package lib diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go index 41bfd0b0..c95c9bac 100644 --- a/worker/notmuch/message.go +++ b/worker/notmuch/message.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package notmuch diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 09b5d509..575cd565 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -1,4 +1,5 @@ -//+build notmuch +//go:build notmuch +// +build notmuch package notmuch -- cgit