From b6896890565dbbcddf682ef464ab4870e54193dd Mon Sep 17 00:00:00 2001 From: gizak Date: Fri, 20 Mar 2015 16:21:50 -0400 Subject: [PATCH] Add build tags for examples --- bar.go | 4 ++++ block.go | 4 ++++ box.go | 4 ++++ box_others.go | 4 ++++ box_windows.go | 4 ++++ chart.go | 4 ++++ chart_others.go | 4 ++++ chart_windows.go | 4 ++++ example/barchart.go | 6 ++++++ example/dashboard.go | 6 ++++++ example/gauge.go | 6 ++++++ example/grid.go | 6 ++++++ example/linechart.go | 6 ++++++ example/list.go | 6 ++++++ example/par.go | 6 ++++++ example/sparklines.go | 6 ++++++ example/theme.go | 6 ++++++ gauge.go | 4 ++++ grid.go | 4 ++++ grid_test.go | 4 ++++ helper.go | 4 ++++ helper_test.go | 4 ++++ list.go | 4 ++++ p.go | 4 ++++ point.go | 4 ++++ render.go | 4 ++++ sparkline.go | 4 ++++ theme.go | 4 ++++ 28 files changed, 130 insertions(+) diff --git a/bar.go b/bar.go index 18aa964..9ec3b1c 100644 --- a/bar.go +++ b/bar.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "fmt" diff --git a/block.go b/block.go index c91c318..5df8149 100644 --- a/block.go +++ b/block.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui // basic struct, consider it as css: display:block diff --git a/box.go b/box.go index fc4e0b6..776ef6e 100644 --- a/box.go +++ b/box.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui type border struct { diff --git a/box_others.go b/box_others.go index f69f4f6..bcc3d7d 100644 --- a/box_others.go +++ b/box_others.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + // +build !windows package termui diff --git a/box_windows.go b/box_windows.go index 2df56a1..dd39019 100644 --- a/box_windows.go +++ b/box_windows.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + // +build windows package termui diff --git a/chart.go b/chart.go index 589d1d3..05859ac 100644 --- a/chart.go +++ b/chart.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "fmt" diff --git a/chart_others.go b/chart_others.go index c593557..8911873 100644 --- a/chart_others.go +++ b/chart_others.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + // +build !windows package termui diff --git a/chart_windows.go b/chart_windows.go index 1e92cf8..9f9a5e9 100644 --- a/chart_windows.go +++ b/chart_windows.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + // +build windows package termui diff --git a/example/barchart.go b/example/barchart.go index 2e9829b..85963a9 100644 --- a/example/barchart.go +++ b/example/barchart.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import "github.com/gizak/termui" diff --git a/example/dashboard.go b/example/dashboard.go index cbeeb70..76531cd 100644 --- a/example/dashboard.go +++ b/example/dashboard.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import ui "github.com/gizak/termui" diff --git a/example/gauge.go b/example/gauge.go index a4cef73..213f66d 100644 --- a/example/gauge.go +++ b/example/gauge.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import "github.com/gizak/termui" diff --git a/example/grid.go b/example/grid.go index 41f5bc9..73b8799 100644 --- a/example/grid.go +++ b/example/grid.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import ui "github.com/gizak/termui" diff --git a/example/linechart.go b/example/linechart.go index 9796f33..e6c614d 100644 --- a/example/linechart.go +++ b/example/linechart.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import ( diff --git a/example/list.go b/example/list.go index 18d53a5..8727be9 100644 --- a/example/list.go +++ b/example/list.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import "github.com/gizak/termui" diff --git a/example/par.go b/example/par.go index a2d0ada..4540971 100644 --- a/example/par.go +++ b/example/par.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import "github.com/gizak/termui" diff --git a/example/sparklines.go b/example/sparklines.go index 4ef2e1b..50fe5f6 100644 --- a/example/sparklines.go +++ b/example/sparklines.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import "github.com/gizak/termui" diff --git a/example/theme.go b/example/theme.go index 5e0a332..039cd2a 100644 --- a/example/theme.go +++ b/example/theme.go @@ -1,3 +1,9 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + +// +build ignore + package main import ui "github.com/gizak/termui" diff --git a/gauge.go b/gauge.go index 6df5c78..107d317 100644 --- a/gauge.go +++ b/gauge.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "strconv" diff --git a/grid.go b/grid.go index e4f8e3a..d35958c 100644 --- a/grid.go +++ b/grid.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui // Bufferers that can be manipulated by Grid diff --git a/grid_test.go b/grid_test.go index 7712f3f..3230033 100644 --- a/grid_test.go +++ b/grid_test.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import ( diff --git a/helper.go b/helper.go index 32551d7..4b44843 100644 --- a/helper.go +++ b/helper.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import tm "github.com/nsf/termbox-go" diff --git a/helper_test.go b/helper_test.go index d54c976..6aa8d21 100644 --- a/helper_test.go +++ b/helper_test.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "testing" diff --git a/list.go b/list.go index 3ad7d18..70750d7 100644 --- a/list.go +++ b/list.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "strings" diff --git a/p.go b/p.go index 6264955..dc519b4 100644 --- a/p.go +++ b/p.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui type Par struct { diff --git a/point.go b/point.go index daac039..2289559 100644 --- a/point.go +++ b/point.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui type Point struct { diff --git a/render.go b/render.go index c0f3100..1316a1c 100644 --- a/render.go +++ b/render.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import tm "github.com/nsf/termbox-go" diff --git a/sparkline.go b/sparkline.go index 42873fe..5faed2c 100644 --- a/sparkline.go +++ b/sparkline.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui import "math" diff --git a/theme.go b/theme.go index af51516..092d06b 100644 --- a/theme.go +++ b/theme.go @@ -1,3 +1,7 @@ +// Copyright 2015 Zack Guo . All rights reserved. +// Use of this source code is governed by a MIT license that can +// be found in the LICENSE file. + package termui // A ColorScheme represents the current look-and-feel of the dashboard.