mirror of
https://github.com/gizak/termui.git
synced 2025-04-24 13:48:50 +08:00
feat: fix import
This commit is contained in:
parent
0b8d905cec
commit
b3ed8f6f8f
@ -3,7 +3,7 @@ package termui
|
||||
import (
|
||||
"image"
|
||||
|
||||
"github.com/gizak/termui/v3/drawille"
|
||||
"github.com/proullon/termui/v3/drawille"
|
||||
)
|
||||
|
||||
type Canvas struct {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/gizak/termui/v3
|
||||
module github.com/proullon/termui/v3
|
||||
|
||||
go 1.15
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type BarChart struct {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type Field struct {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type Gauge struct {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"image"
|
||||
"image/color"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type Image struct {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type List struct {
|
||||
|
@ -7,7 +7,7 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type Paragraph struct {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"image"
|
||||
"math"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
// Plot has two modes: line(default) and scatter.
|
||||
|
@ -7,7 +7,7 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
// Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers.
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
type StackedBarChart struct {
|
||||
|
@ -7,10 +7,11 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
/*Table is like:
|
||||
/*
|
||||
Table is like:
|
||||
┌ Awesome Table ───────────────────────────────────────────────┐
|
||||
│ Col0 | Col1 | Col2 | Col3 | Col4 | Col5 | Col6 |
|
||||
│──────────────────────────────────────────────────────────────│
|
||||
|
@ -7,7 +7,7 @@ package widgets
|
||||
import (
|
||||
"image"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
// TabPane is a renderable widget which can be used to conditionally render certain tabs/views.
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"image"
|
||||
"strings"
|
||||
|
||||
. "github.com/gizak/termui/v3"
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
. "github.com/proullon/termui/v3"
|
||||
)
|
||||
|
||||
const treeIndent = " "
|
||||
|
Loading…
x
Reference in New Issue
Block a user