fix: lint issues

This commit is contained in:
yanghao05
2023-03-09 10:23:23 +08:00
parent 8d1bd191df
commit 5943b9e1d5
17 changed files with 88 additions and 78 deletions

View File

@@ -42,10 +42,10 @@ type Whitelist struct {
AllowCredentials bool
}
func (h Http) Address() string {
func (h *Http) Address() string {
return fmt.Sprintf("%s:%d", h.Host, h.Port)
}
func (h Http) PortString() string {
func (h *Http) PortString() string {
return fmt.Sprintf(":%d", h.Port)
}