From fff3dadabc321871e6819392efc605c6dffe2e69 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Aug 2023 10:57:27 +0530 Subject: migrated from MAL2Go to mg package --- mal/user.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mal/user.go') diff --git a/mal/user.go b/mal/user.go index c271aab..b9301e0 100644 --- a/mal/user.go +++ b/mal/user.go @@ -19,16 +19,17 @@ along with this program. If not, see . package mal import ( - u "github.com/MikunoNaka/MAL2Go/v4/user" + "vidhukant.com/mg" "fmt" "os" ) -func GetUserInfo() u.UserInfo { - userInfo, err := userClient.GetSelfUserInfo() +func GetUserInfo() mg.User { + var user mg.User + err := MALClient.GetSelfInfo(&user, true) if err != nil { fmt.Println("Error fetching User Information:", err) os.Exit(1) } - return userInfo + return user } -- cgit v1.2.3