A better way to print prettified json syntax error msg

This commit is contained in:
Anis ELLEUCH
2015-09-29 23:11:46 +01:00
committed by Harshavardhana
parent db293aedb7
commit b5ea05d839
14 changed files with 432 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
// Copyright 2014 Oleku Konko All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
// This module is a Terminal API for the Go Programming Language.
// The protocols were written in pure Go and works on windows and unix systems
package ts
// Return System Size
type Size struct {
row uint16
col uint16
posX uint16
posY uint16
}
// Get Terminal Width
func (w Size) Col() int {
return int(w.col)
}
// Get Terminal Height
func (w Size) Row() int {
return int(w.row)
}
// Get Position X
func (w Size) PosX() int {
return int(w.posX)
}
// Get Position Y
func (w Size) PosY() int {
return int(w.posY)
}