readded banner
This commit is contained in:
parent
f070003222
commit
c22280e432
2 changed files with 1 additions and 8 deletions
|
@ -24,7 +24,7 @@ func NewServer() Server {
|
|||
func (s *Server) Init() {
|
||||
|
||||
e := echo.New()
|
||||
e.HideBanner = true
|
||||
//e.HideBanner = true
|
||||
|
||||
e.GET("/", func(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "Hello, World!")
|
||||
|
|
|
@ -1,18 +1,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCanInitLogger(t *testing.T) {
|
||||
log := initLogger()
|
||||
|
||||
assert.Equal(t, "logging.Logger", reflect.TypeOf(log).String(), "logger has invalid type")
|
||||
}
|
||||
|
||||
func TestCanReadConfig(t *testing.T) {
|
||||
cfg, err := readConfig("configs/config.example.json")
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue