Add build tags for examples

This commit is contained in:
gizak 2015-03-20 16:21:50 -04:00
parent bffab774f5
commit b689689056
28 changed files with 130 additions and 0 deletions

4
bar.go
View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "fmt" import "fmt"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
// basic struct, consider it as css: display:block // basic struct, consider it as css: display:block

4
box.go
View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
type border struct { type border struct {

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
// +build !windows // +build !windows
package termui package termui

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
// +build windows // +build windows
package termui package termui

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "fmt" import "fmt"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
// +build !windows // +build !windows
package termui package termui

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
// +build windows // +build windows
package termui package termui

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import "github.com/gizak/termui" import "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import ui "github.com/gizak/termui" import ui "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import "github.com/gizak/termui" import "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import ui "github.com/gizak/termui" import ui "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import ( import (

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import "github.com/gizak/termui" import "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import "github.com/gizak/termui" import "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import "github.com/gizak/termui" import "github.com/gizak/termui"

View File

@ -1,3 +1,9 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. 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 package main
import ui "github.com/gizak/termui" import ui "github.com/gizak/termui"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "strconv" import "strconv"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
// Bufferers that can be manipulated by Grid // Bufferers that can be manipulated by Grid

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import ( import (

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import tm "github.com/nsf/termbox-go" import tm "github.com/nsf/termbox-go"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "testing" import "testing"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "strings" import "strings"

4
p.go
View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
type Par struct { type Par struct {

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
type Point struct { type Point struct {

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import tm "github.com/nsf/termbox-go" import tm "github.com/nsf/termbox-go"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
import "math" import "math"

View File

@ -1,3 +1,7 @@
// Copyright 2015 Zack Guo <gizak@icloud.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui package termui
// A ColorScheme represents the current look-and-feel of the dashboard. // A ColorScheme represents the current look-and-feel of the dashboard.