mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-31 17:10:28 +08:00
23 lines
336 B
Go
23 lines
336 B
Go
|
// Copyright 2013 Apcera Inc. All rights reserved.
|
||
|
|
||
|
// +build ignore
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/apcera/termtables/term"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
size, err := term.GetSize()
|
||
|
if err != nil {
|
||
|
fmt.Fprintf(os.Stderr, "failed: %s\n", err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
|
||
|
fmt.Printf("Lines %d Columns %d\n", size.Lines, size.Columns)
|
||
|
}
|