From c54ce2b46b9baf8cb0ad304ea616f1a6aec74db2 Mon Sep 17 00:00:00 2001 From: Odyssey Date: Thu, 19 Jan 2023 16:04:28 +0100 Subject: [PATCH] fix formatting Signed-off-by: Odyssey --- main.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 333c0f8..b045397 100644 --- a/main.go +++ b/main.go @@ -1,15 +1,16 @@ package main import ( - "github.com/ProjectSegfault/publapi/pages" - "github.com/gofiber/fiber/v2" - log "github.com/sirupsen/logrus" - "github.com/spf13/viper" "os" "os/exec" "regexp" "runtime" "strings" + + "github.com/ProjectSegfault/publapi/pages" + "github.com/gofiber/fiber/v2" + log "github.com/sirupsen/logrus" + "github.com/spf13/viper" ) type Userstruct struct { @@ -18,6 +19,7 @@ type Userstruct struct { Total int `json:"total"` Users []Userinfo `json:"users"` } + type Userinfo struct { Name string `json:"name"` FullName string `json:"fullName"` @@ -40,6 +42,7 @@ func Dedup(input string) string { } return strings.Join(unique, " ") } + func contains(strs []string, str string) bool { for _, s := range strs { if s == str {