mirror of
https://github.com/pushbits/server.git
synced 2025-06-10 22:51:56 +02:00
Add scans with gosec
This commit is contained in:
parent
56f39cf64c
commit
5cd3627dc6
8 changed files with 47 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue