diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
commit | fff3dadabc321871e6819392efc605c6dffe2e69 (patch) | |
tree | 25aceed23b73b2ad975a06d73fad091d0886a2a6 /mal/user.go | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'mal/user.go')
-rw-r--r-- | mal/user.go | 9 |
1 files changed, 5 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. 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 } |