Add scans with gosec

This commit is contained in:
eikendev 2022-02-13 15:06:54 +01:00
parent 56f39cf64c
commit 5cd3627dc6
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
8 changed files with 47 additions and 12 deletions

View file

@ -7,6 +7,11 @@ import (
)
// Run starts the Gin engine.
func Run(engine *gin.Engine, address string, port int) {
engine.Run(fmt.Sprintf("%s:%d", address, port))
func Run(engine *gin.Engine, address string, port int) error {
err := engine.Run(fmt.Sprintf("%s:%d", address, port))
if err != nil {
return err
}
return nil
}