[go-nuts] Re: The GO equiv. to 'tail -f' ?

2021-02-20 Thread Steve Murphy
gt; On Thursday, 18 February 2021 at 18:50:43 UTC Steve Murphy wrote: > >> I'm having a hard time finding some tools in GO to follow log files and >> make real-time commentary about stuff like alerting about outages now >> underway, and making alerts over things that *should* h

[go-nuts] The GO equiv. to 'tail -f' ?

2021-02-18 Thread Steve Murphy
months ago, but now nothing shows up in my search engine. Many thanks murf -- Steve Murphy ParseTree Corporation -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-12 Thread Steve Murphy
ce holds. > Something like: > > valDeref := val.(*interface{}) > > fmt.Printf("val contains=%T", valDeref) > > You may find that valDeref contains the *int64 you are looking for. > > As an aside, *interface{} is usually an indication that someone somewhere > is

Re: [go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-11 Thread Steve Murphy
ewhere > is passing the wrong value to the function since it almost never makes > sense to pass a pointer to interface{}. > > > > > > On Mon, 11 Jan 2021, at 4:03 PM, Steve Murphy wrote: > > Hello! > > I keep getting: > panic: interface conversion: interf

[go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-11 Thread Steve Murphy
ng.tRunner(0xc000108100, 0x5570f0) /usr/lib/go-1.13/src/testing/testing.go:909 +0 How do I set realval to the (*int64) value that's in val? murf -- Steve Murphy ParseTree Corporation 57 Lane 17 Cody, WY 82414 ✉ murf at parsetree dot com ☎ 307-899-0510 -- You received this message because