From ccb1cf8c1679d5e8a401a85151ef9882e4293b81 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 29 Jun 2022 23:46:39 +0530 Subject: fixed font color not resetting for values --- cmd/user_info.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/user_info.go b/cmd/user_info.go index 46b2954..8b6463e 100644 --- a/cmd/user_info.go +++ b/cmd/user_info.go @@ -34,14 +34,14 @@ Currently, MyAnimeList doesn't allow reading of other users' profiles. Run: func(cmd *cobra.Command, args []string) { userInfo := mal.GetUserInfo() - fmt.Printf("\x1b[1;34mUsername: %s\n\x1b[0m", userInfo.Name) - fmt.Printf("\x1b[1;34mProfile Picture: %s\n\x1b[0m", userInfo.Picture) - fmt.Printf("\x1b[1;34mGender: %s\n\x1b[0m", userInfo.Gender) - fmt.Printf("\x1b[1;34mLocation: %s\n\x1b[0m", userInfo.Location) - fmt.Printf("\x1b[1;34mBirthday: %s\n\x1b[0m", userInfo.Birthday) - fmt.Printf("\x1b[1;34mTime Zone: %s\n\x1b[0m", userInfo.TimeZone) - fmt.Printf("\x1b[1;34mJoined At: %s\n\x1b[0m", userInfo.JoinedAt) - fmt.Printf("\x1b[1;34mUser ID: %d\n\x1b[0m", userInfo.Id) + fmt.Printf("\x1b[1;34mUsername: \x1b[0m%s\n", userInfo.Name) + fmt.Printf("\x1b[1;34mProfile Picture: \x1b[0m%s\n\x1b[0m", userInfo.Picture) + fmt.Printf("\x1b[1;34mGender: \x1b[0m%s\n", userInfo.Gender) + fmt.Printf("\x1b[1;34mLocation: \x1b[0m%s\n", userInfo.Location) + fmt.Printf("\x1b[1;34mBirthday: \x1b[0m%s\n", userInfo.Birthday) + fmt.Printf("\x1b[1;34mTime Zone: \x1b[0m%s\n", userInfo.TimeZone) + fmt.Printf("\x1b[1;34mJoined At: \x1b[0m%s\n", userInfo.JoinedAt) + fmt.Printf("\x1b[1;34mUser ID: \x1b[0m%d\n", userInfo.Id) if userInfo.IsSupporter { fmt.Printf("\x1b[33mYou are a MyAnimeList Supporter.\n\x1b[0m") -- cgit v1.2.3