[Solved] Is it possible to change the output to be an actual string of characters?


You’re taking *strings when you really only need strings. It’s a simple change to derefernce the pointers you get back from AWS SDK (it uses pointers for everything for nullability):

var accountList []string

for _, accountId := range result.Accounts {
    accountList = append(accountList, *accountId.Id)
}
fmt.Println(accountList)

solved Is it possible to change the output to be an actual string of characters?