I'm need to get a part a of a string, i.e.: { "token":"eyJ0eXjskdckjasdcaksdclkasdcsjnsc", "expiresOnTimestamp":9234234 }
I've tried using split, splitafter. I need to get this token, just the token.
I'm need to get a part a of a string, i.e.: { "token":"eyJ0eXjskdckjasdcaksdclkasdcsjnsc", "expiresOnTimestamp":9234234 }
I've tried using split, splitafter. I need to get this token, just the token.
Copyright © 2021 Jogjafile Inc.
You should parse it to
map[string]interface{}
:Or create a dedicated
struct
for unmarshal: