Skip to content

Commit

Permalink
v1.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta456 committed Jun 10, 2020
1 parent 9758b76 commit 18b6b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func main() {

### `Box struct` Methods

`Box.Print(title, lines string)` prints Box from the specified arguements.
`Box.Print(title, lines string)` prints Box from the specified arguments.

- Parameters
- `title` : Title of the Box
- `lines` : Content to be written inside the Box

`Box.Println(title, lines string)` prints Box in a newline from the specified arguements.
`Box.Println(title, lines string)` prints Box in a newline from the specified arguments.

- Parameters
- `title` : Title of the Box
Expand Down
2 changes: 2 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func (b Box) findAlign() string {
return centerAlign
} else if b.Con.ContentAlign == "Right" {
return rightAlign
} else if b.Con.ContentAlign == "Left" {
return leftAlign
} else {
fmt.Fprintln(os.Stderr, "Invalid Alignment provided, using default Alignment")
return leftAlign
Expand Down

0 comments on commit 18b6b82

Please sign in to comment.