In the net/url package there’s a QueryEscape function which accepts a string and will return the string with all the special characters encoded so they can be added to a url safely. The good news is you can do the same in Go and rather simply too. If you are coming from a PHP background you’re probably very used to functions like urlencode() and rawurlencode().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |