From db1d0639062259e83dbe68cc9f08a089aaa557f7 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 7 May 2019 19:23:49 +0700 Subject: dns: suppress linter warning on struct ServerOptions could be aligned We can move the boolean field "DoHAllowInsecure" to the bottom of struct to make the struct aligned, but it will make the fields "unstructured". We prefer the options grouped by their usage. --- lib/dns/serveroptions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/serveroptions.go b/lib/dns/serveroptions.go index 51db5176..335eec94 100644 --- a/lib/dns/serveroptions.go +++ b/lib/dns/serveroptions.go @@ -18,6 +18,7 @@ import ( // // ServerOptions describes options for running a DNS server. // +//nolint: maligned type ServerOptions struct { // IPAddress ip address to serve query, without port number. // This field is optional, default to "0.0.0.0". -- cgit v1.3