From e810ccb3c96513a307cdec2c54bbb4db876ca2a5 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 23 May 2026 21:24:34 +0200 Subject: Split run() arguments into multiple lines One line per argument makes the code more readable and also diffs in case arguments are changed. --- main.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 6a16cd2..8051118 100644 --- a/main.go +++ b/main.go @@ -23,10 +23,22 @@ var versionTxt string var router *mux.Router = mux.NewRouter() func main() { - run(router, Addr, WriteTimeout, ReadTimeout, []syscall.Signal{syscall.SIGTERM, syscall.SIGINT}) + run( + router, + Addr, + WriteTimeout, + ReadTimeout, + []syscall.Signal{syscall.SIGTERM, syscall.SIGINT}, + ) } -func run(handler http.Handler, addr string, wTimeout time.Duration, rTimeout time.Duration, signals []syscall.Signal) { +func run( + handler http.Handler, + addr string, + wTimeout time.Duration, + rTimeout time.Duration, + signals []syscall.Signal, +) { log.Println("finserv finance server was started.") defer log.Println("finserv finance server was stopped.") -- cgit v1.3