-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
46 lines (42 loc) · 1.2 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// The following is the original copyright:
// https://github.com/uffejakobsen/sysvbanner
// ------------------------------------------------------------------
/*****************************************************************
*
* SYSVbanner.c
*
* This is a PD version of the SYS V banner program (at least I think
* it is compatible to SYS V) which I wrote to use with the clock
* program written by:
** DCF, Inc.
** 14623 North 49th Place
** Scottsdale, AZ 85254
* and published in the net comp.sources.misc newsgroup in early July
* since the BSD banner program works quite differently.
*
* There is no copyright or responsibility accepted for the use
* of this software.
*
* Brian Wallis, [email protected], 4 July 1988
*
*****************************************************************/
/* Changes by David Frey, [email protected], 3 February 1997:
* 1. protoized and indented, 2. changed @ character to #
*/
// ------------------------------------------------------------------
package main
import (
"banner"
"log"
"os"
)
func main() {
defer func() {
if err := recover(); err != nil {
log.Fatal(err)
}
}()
for _, str := range os.Args[1:] {
banner.Banner(str, os.Stdout)
}
}