Skip to content

Commit

Permalink
style(pkg): add points at the end of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Apr 28, 2021
1 parent 18c18bf commit 84fc12b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import (
"github.com/danvergara/dblab/pkg/gui"
)

// App Struct
// App Struct.
type App struct {
c *client.Client
g *gui.Gui
}

// New bootstrap a new application
// New bootstrap a new application.
func New(c *client.Client, g *gui.Gui) *App {
return &App{
c: c,
g: g,
}
}

// Run runs the application
// Run runs the application.
func (a *App) Run() error {
if err := a.g.Run(); err != nil {
return err
Expand Down
6 changes: 3 additions & 3 deletions pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ package gui

import "github.com/jroimartin/gocui"

// Gui wraps the gocui Gui object which handles rendering and events
// Gui wraps the gocui Gui object which handles rendering and events.
type Gui struct {
g *gocui.Gui
}

// New builds a new gui handler
// New builds a new gui handler.
func New(g *gocui.Gui) *Gui {
return &Gui{
g: g,
}
}

// Run setup the gui with keybindings and start the mainloop
// Run setup the gui with keybindings and start the mainloop.
func (gui *Gui) Run() error {
defer gui.g.Close()

Expand Down

0 comments on commit 84fc12b

Please sign in to comment.