v3.0.0 🎉

Fix install command
This commit is contained in:
Caleb Bassi 2019-03-07 02:50:20 -08:00
parent eaec27d1df
commit 70fa7b8887
30 changed files with 53 additions and 52 deletions

View File

@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## 2019/03/07 ## [3.0.0] - 2019/03/07
### Changed ### Changed
@ -117,4 +117,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#126]: https://github.com/gizak/termui/pull/126 [#126]: https://github.com/gizak/termui/pull/126
[Unreleased]: https://github.com/gizak/termui/compare/v2.3.0...HEAD [Unreleased]: https://github.com/gizak/termui/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/gizak/termui/compare/v2.3.0...HEAD

View File

@ -6,16 +6,16 @@ termui is a cross-platform and fully-customizable terminal dashboard and widget
## Features ## Features
- Built in widget implementations for common use cases - Several premade widgets for common use cases
- Utilities to create custom widgets - Easily create custom widgets
- Relative widget positioning using a grid layout - Position widgets either in a relative grid or with absolute coordinates
- Event system for keyboard, mouse and terminal resizing events - Keyboard, mouse, and terminal resizing events
- Colors and styling - Colors and styling
## Installation ## Installation
```bash ```bash
go get -u github.com/gizak/termui go get github.com/gizak/termui/v3
``` ```
## Hello World ## Hello World
@ -26,8 +26,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -6,7 +6,7 @@ import (
"image" "image"
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
) )
func main() { func main() {

View File

@ -11,8 +11,8 @@ import (
"math" "math"
"time" "time"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -10,8 +10,8 @@ import (
"fmt" "fmt"
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -11,8 +11,8 @@ import (
"math" "math"
"time" "time"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -5,8 +5,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -18,8 +18,8 @@ import (
"os" "os"
"strings" "strings"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {
@ -22,7 +22,7 @@ func main() {
l := widgets.NewList() l := widgets.NewList()
l.Title = "List" l.Title = "List"
l.Rows = []string{ l.Rows = []string{
"[0] github.com/gizak/termui", "[0] github.com/gizak/termui/v3",
"[1] [你好,世界](fg:blue)", "[1] [你好,世界](fg:blue)",
"[2] [こんにちは世界](fg:red)", "[2] [こんにちは世界](fg:red)",
"[3] [color](fg:white,bg:green) output", "[3] [color](fg:white,bg:green) output",

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ import (
"math/rand" "math/rand"
"time" "time"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
var run = true var run = true

View File

@ -10,8 +10,8 @@ import (
"log" "log"
"math" "math"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -9,8 +9,8 @@ package main
import ( import (
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/widgets" "github.com/gizak/termui/v3/widgets"
) )
func main() { func main() {

View File

@ -10,7 +10,7 @@ import (
"fmt" "fmt"
"log" "log"
ui "github.com/gizak/termui" ui "github.com/gizak/termui/v3"
) )
// logs all events to the termui window // logs all events to the termui window

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/gizak/termui module github.com/gizak/termui/v3
require ( require (
github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd

View File

@ -10,7 +10,7 @@ import (
rw "github.com/mattn/go-runewidth" rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type BarChart struct { type BarChart struct {

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type Gauge struct { type Gauge struct {

View File

@ -8,7 +8,7 @@ import (
"image" "image"
"image/color" "image/color"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type Image struct { type Image struct {

View File

@ -9,7 +9,7 @@ import (
rw "github.com/mattn/go-runewidth" rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type List struct { type List struct {

View File

@ -7,7 +7,7 @@ package widgets
import ( import (
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type Paragraph struct { type Paragraph struct {

View File

@ -4,7 +4,7 @@ import (
"image" "image"
"math" "math"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
const ( const (

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
// Plot has two modes: line(default) and scatter. // Plot has two modes: line(default) and scatter.

View File

@ -7,7 +7,7 @@ package widgets
import ( import (
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
// Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers. // Sparkline is like: ▅▆▂▂▅▇▂▂▃▆▆▆▅▃. The data points should be non-negative integers.

View File

@ -10,7 +10,7 @@ import (
rw "github.com/mattn/go-runewidth" rw "github.com/mattn/go-runewidth"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
type StackedBarChart struct { type StackedBarChart struct {

View File

@ -7,7 +7,7 @@ package widgets
import ( import (
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
/*Table is like: /*Table is like:

View File

@ -7,7 +7,7 @@ package widgets
import ( import (
"image" "image"
. "github.com/gizak/termui" . "github.com/gizak/termui/v3"
) )
// TabPane is a renderable widget which can be used to conditionally render certain tabs/views. // TabPane is a renderable widget which can be used to conditionally render certain tabs/views.