diff options
| author | Shulhan <ms@kilabit.info> | 2020-02-14 11:59:22 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2020-02-14 11:59:22 +0700 |
| commit | 9c53b6f8b9d0e7596c658ce2d89fb2a71cf0ce62 (patch) | |
| tree | da271f8369b587cf958deecae3aa16557fee88b9 | |
| parent | 65eae15930afa51ed233f4b1e41ef241a845cc58 (diff) | |
| download | ciigo-9c53b6f8b9d0e7596c658ce2d89fb2a71cf0ce62.tar.xz | |
all: fix and suppress linter warnings
| -rw-r--r-- | ciigo.go | 1 | ||||
| -rw-r--r-- | cmd/ciigo/main.go | 3 | ||||
| -rw-r--r-- | server.go | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -24,6 +24,7 @@ const ( markupKindMarkdown ) +//nolint: gochecknoglobals var ( defExcludes = []string{ `.*\.adoc$`, diff --git a/cmd/ciigo/main.go b/cmd/ciigo/main.go index 59fc6c6..ad91ff3 100644 --- a/cmd/ciigo/main.go +++ b/cmd/ciigo/main.go @@ -113,6 +113,5 @@ ciigo [-template <file>] [-address <ip:port>] serve <dir> Serve all files inside directory "dir" using HTTP server, watch changes on markup files and convert them to HTML files automatically. - If the address is not set, its default to ":8080". -`) + If the address is not set, its default to ":8080".`) } @@ -240,7 +240,7 @@ func (srv *Server) onSearch(res http.ResponseWriter, req *http.Request, reqBody } fhtml := &fileHTML{ - Body: template.HTML(bufSearch.String()), + Body: template.HTML(bufSearch.String()), //nolint: gosec } err = srv.htmlg.tmpl.Execute(&buf, fhtml) |
