Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to format the data? #3

Open
mycode65678 opened this issue Dec 1, 2018 · 2 comments
Open

How to format the data? #3

mycode65678 opened this issue Dec 1, 2018 · 2 comments

Comments

@mycode65678
Copy link

How to format the data?
I can't transfer an array from interface

@dobau
Copy link

dobau commented Oct 27, 2019

I have same problem here

@mycode65678
Copy link
Author

I have same problem here

list := data.Records.(*[]Bank)
		for k, v := range *list {
			if len(v.Card) > 4 {
				(*list)[k].Card = string([]byte(v.Card)[len(v.Card)-4:])
			}
		}
		data.Records = list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants