Skip to content

Commit

Permalink
Add a comments to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Jul 3, 2021
1 parent 029ab51 commit 5b15486
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,31 @@ import (
"github.com/mum4k/termdash/widgets/donut"
)

// playType indicates how to play a donut.
type playType int

const (
// RPC requests are made to the native app running
appRPC = "http://localhost"
// donut widget constants
playTypePercent playType = iota
playTypeAbsolute
)

// optional port variable. example: `gex -p 30057`
var givenPort = flag.String("p", "26657", "port to connect to as a string")

// Info describes Info that we might want to use in the explorer
// Info describes a list of types with data that are used in the explorer
type Info struct {
blocks *Blocks
}

// Blocks describe content that we parse for a block
// Blocks describe content that gets parsed for a block
type Blocks struct {
amount int
secondsPassed int
}

// playType indicates the type of the donut widget.
type playType int

func main() {
view()

Expand Down

0 comments on commit 5b15486

Please sign in to comment.