From 32af09015e6e48e8ca1f037f03c78e3d9e3743b6 Mon Sep 17 00:00:00 2001 From: Leandro Moreira Date: Tue, 27 Feb 2024 14:31:44 -0300 Subject: [PATCH] return proper type --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 7fd5fdd..53aea5f 100644 --- a/log.go +++ b/log.go @@ -51,7 +51,7 @@ const ( LogLevelDebug = LogLevel(C.AV_LOG_DEBUG) ) -func (l LogLevel) String() { +func (l LogLevel) String() string { return C.GoString(C.get_level_str(C.int(l))) }