Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
1eb6d79277
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -104,8 +104,8 @@ func NewMux(ctx context.Context, shutdown context.CancelFunc, db *database.DataB
 func New(ctx context.Context, shutdown context.CancelFunc, db *database.DataBase) (*http.Server, error) {
 func New(ctx context.Context, shutdown context.CancelFunc, db *database.DataBase) (*http.Server, error) {
     mux := NewMux(ctx, shutdown, db)
     mux := NewMux(ctx, shutdown, db)
     srv := &http.Server{
     srv := &http.Server{
-    Addr:   consts.Config.Host + ":" + consts.Config.Port,
-            Handler: mux,
+        Addr:    consts.Config.Host + ":" + consts.Config.Port,
+        Handler: mux,
     }
     }
     go func() {
     go func() {
         fmt.Printf("Web server: http://%s:%s/\n", consts.Config.Host, consts.Config.Port)
         fmt.Printf("Web server: http://%s:%s/\n", consts.Config.Host, consts.Config.Port)