-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More linting and fixes for missing bits (#38)
- Loading branch information
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# https://golangci-lint.run/usage/linters/ | ||
issues: | ||
exclude-use-default: false | ||
linters: | ||
enable: | ||
- asciicheck | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
Package table contains a Bubble Tea component for an interactive and customizable | ||
table. | ||
The simplest useful table can be created with table.New(...).WithRows(...). Row | ||
data should map to the column keys, as shown below. Note that extra data will | ||
simply not be shown, while missing data will be safely blank in the row's cell. | ||
const ( | ||
// This is not necessary, but recommended to avoid typos | ||
columnKeyName = "name" | ||
columnKeyCount = "count" | ||
) | ||
// Define the columns and how they appear | ||
columns := []table.Column{ | ||
table.NewColumn(columnKeyName, "Name", 10), | ||
table.NewColumn(columnKeyCount, "Count", 6), | ||
} | ||
// Define the data that will be in the table, mapping to the column keys | ||
rows := []table.Row{ | ||
table.NewRow(table.RowData{ | ||
columnKeyName: "Cheeseburger", | ||
columnKeyCount: 3, | ||
}), | ||
table.NewRow(table.RowData{ | ||
columnKeyName: "Fries", | ||
columnKeyCount: 2, | ||
}), | ||
} | ||
// Create the table | ||
tbl := table.New(columns).WithRows(rows) | ||
// Use it like any Bubble Tea component in your view | ||
tbl.View() | ||
*/ | ||
package table |