1package logging 2 3import "io" 4 5const DefaultMaxEntries = 10 6 7type Entry struct { 8 Text string 9} 10 11type Logger interface { 12 io.Writer 13 MaxEntries() int 14 Tail(n int) []Entry 15 Subscribe() <-chan Entry 16}