Skip to content

Commit

Permalink
chore: change sample
Browse files Browse the repository at this point in the history
  • Loading branch information
nekrassov01 committed Feb 7, 2024
1 parent 88cac3d commit fe1a9a5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ func main() {
{InstanceName: "i-1", SecurityGroupName: "sg-2", CidrBlock: []string{"10.2.0.0/16"}},
{InstanceName: "i-1", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.0.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.1.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.1.0.0/16", "::1"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.2.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16", "::1"}},
{InstanceName: "i-3", SecurityGroupName: "", CidrBlock: []string{"10.0.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-4", SecurityGroupName: "sg-4", CidrBlock: []string{}},
}
Expand All @@ -67,14 +67,14 @@ func main() {
| i-2 | sg-1 | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16 |
| | | 0.0.0.0/0 |
| | | sg-5 |
| i-2 | sg-2 | 10.2.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-2 | 10.3.0.0/16 |
| | | sg-5 |
| i-3 | - | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| i-4 | sg-4 | - |
*/

table = mintab.NewTable(mintab.WithFormat(mintab.MarkdownFormat))
Expand All @@ -91,11 +91,11 @@ func main() {
| i-1 | sg-2 | 10.2.0.0/16 |
| i-1 | sg-2 | 10.3.0.0/16 |
| i-2 | sg-1 | 10.0.0.0/16<br>0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16<br>0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16<br>sg-5 |
| i-2 | sg-2 | 10.2.0.0/16<br>0.0.0.0/0 |
| i-2 | sg-2 | 10.3.0.0/16<br>0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16<br>0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| i-2 | sg-2 | 10.3.0.0/16<br>sg-5 |
| i-3 | \- | 10.0.0.0/16<br>0.0.0.0/0 |
| i-4 | sg-4 | \- |
*/

table = mintab.NewTable(mintab.WithFormat(mintab.BacklogFormat))
Expand All @@ -111,11 +111,11 @@ func main() {
| i-1 | sg-2 | 10.2.0.0/16 |
| i-1 | sg-2 | 10.3.0.0/16 |
| i-2 | sg-1 | 10.0.0.0/16&br;0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16&br;0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16&br;sg-5 |
| i-2 | sg-2 | 10.2.0.0/16&br;0.0.0.0/0 |
| i-2 | sg-2 | 10.3.0.0/16&br;0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16&br;0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| i-2 | sg-2 | 10.3.0.0/16&br;sg-5 |
| i-3 | \- | 10.0.0.0/16&br;0.0.0.0/0 |
| i-4 | sg-4 | \- |
*/

table = mintab.NewTable(mintab.WithHeader(false))
Expand All @@ -132,14 +132,14 @@ func main() {
| i-2 | sg-1 | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16 |
| | | 0.0.0.0/0 |
| | | sg-5 |
| i-2 | sg-2 | 10.2.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-2 | 10.3.0.0/16 |
| | | sg-5 |
| i-3 | - | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| i-4 | sg-4 | - |
*/

table = mintab.NewTable(mintab.WithEmptyFieldPlaceholder("NULL"))
Expand All @@ -158,11 +158,11 @@ func main() {
| i-2 | sg-1 | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-1 | 10.1.0.0/16 |
| | | 0.0.0.0/0 |
| | | sg-5 |
| i-2 | sg-2 | 10.2.0.0/16 |
| | | 0.0.0.0/0 |
| i-2 | sg-2 | 10.3.0.0/16 |
| | | 0.0.0.0/0 |
| | | sg-5 |
| i-3 | NULL | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-4 | sg-4 | NULL |
Expand All @@ -184,14 +184,14 @@ func main() {
| i-2 | sg-1 | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| | | 10.1.0.0/16 |
| | | 0.0.0.0/0 |
| | | sg-5 |
| | sg-2 | 10.2.0.0/16 |
| | | 0.0.0.0/0 |
| | | 10.3.0.0/16 |
| | | sg-5 |
| i-3 | - | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16 |
| | | 0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| i-4 | sg-4 | - |
*/

table = mintab.NewTable(mintab.WithMergeFields([]int{0, 1}), mintab.WithTheme(mintab.DarkTheme))
Expand All @@ -208,11 +208,11 @@ func main() {
| | sg-2 | 10.2.0.0/16 |
| | | 10.3.0.0/16 |
| i-2 | sg-1 | 10.0.0.0/16<br>0.0.0.0/0 |
| | | 10.1.0.0/16<br>0.0.0.0/0 |
| | | 10.1.0.0/16<br>sg-5 |
| | sg-2 | 10.2.0.0/16<br>0.0.0.0/0 |
| | | 10.3.0.0/16<br>0.0.0.0/0 |
| i-3 | N/A | 10.0.0.0/16<br>0.0.0.0/0 |
| i-4 | sg-4 | N/A |
| | | 10.3.0.0/16<br>sg-5 |
| i-3 | - | 10.0.0.0/16<br>0.0.0.0/0 |
| i-4 | sg-4 | - |
*/

table = mintab.NewTable(mintab.WithIgnoreFields([]int{2}))
Expand All @@ -232,7 +232,7 @@ func main() {
| i-2 | sg-1 |
| i-2 | sg-2 |
| i-2 | sg-2 |
| i-3 | N/A |
| i-3 | - |
| i-4 | sg-4 |
*/

Expand Down
Binary file modified _assets/terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions _examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func main() {
{InstanceName: "i-1", SecurityGroupName: "sg-2", CidrBlock: []string{"10.2.0.0/16"}},
{InstanceName: "i-1", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.0.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.1.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-1", CidrBlock: []string{"10.1.0.0/16", "sg-5"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.2.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-2", SecurityGroupName: "sg-2", CidrBlock: []string{"10.3.0.0/16", "sg-5"}},
{InstanceName: "i-3", SecurityGroupName: "", CidrBlock: []string{"10.0.0.0/16", "0.0.0.0/0"}},
{InstanceName: "i-4", SecurityGroupName: "sg-4", CidrBlock: []string{}},
}
Expand Down

0 comments on commit fe1a9a5

Please sign in to comment.