Closed onerciller closed 7 years ago
hello, How I can return as json instead of servefile. I want to get as json to socket and I will make client with js completely. do you have any example about this?
I don't understand the question, http.ServeFile is part of go's standard library.
http.ServeFile
I know it but i want to return as json to data instead of servefile how can i do this could i explain it?
hello, How I can return as json instead of servefile. I want to get as json to socket and I will make client with js completely. do you have any example about this?