I have an array of string UUIDs that I want to change to UUID. Example of the data:
["69359037-9599-48e7-b8f2-48393c019135" "1d8a7307-b5f8-4686-b9dc-b752430abbd8"]
How can I change or parse it? I tried using uuid.fromString() method:
if len(a) == 2 {
user1 := a[0]
a[0], _ = uuid.FromString(a[0])
}
However, this gives me an error
FromString returns UUID parsed from string input. Input is expected in a form accepted by UnmarshalText.