Beispiel #1
0
func (s *Shout) GetError() string {
	s.LazyInit()
	err := C.shout_get_error(s.struc)
	return C.GoString(err)
}
Beispiel #2
0
func (self *Shout) createShoutError() ShoutError {
	/* Creates a Go error of the C library */
	errno := int(C.shout_get_errno(self.shout))
	errstr := C.GoString(C.shout_get_error(self.shout))
	return ShoutError{errno, errstr}
}