I want to extract a string till a character is found. For example:
message := "Rob: Hello everyone!"
user := strings.Trim(message,
I want to be able to store "Rob" (read till ':' is found).
I want to extract a string till a character is found. For example:
message := "Rob: Hello everyone!"
user := strings.Trim(message,
I want to be able to store "Rob" (read till ':' is found).