scanner and if...else control statements you might not have learned yet. If you're feeling adventurous, gear up and give it a shot! If not, you can postpone it and return to it after learning about the above concepts.Imagine you're developing a social media platform. Users can post status updates, but each status update has a limit of 140 characters.
Given the diverse user base, status updates can include emojis and characters from various languages. Here are a couple of status examples:
I love programming in Go! 😃🚀
我喜欢用Go编程!🐼
Your task is to ensure that each status update adheres to the character limit of 140, considering all types of characters used in the status.
Finally, if the status is within the 140 character limit, you should print the message: "Status is within the 140 character limit" If it exceeds the limit, print: "Status exceeds the 140 character limit"
Tip: You can use the utf8.RuneCountInString() function to count the number of characters in the status.