/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

schadokar.dev
| | attilaolah.eu
1.7 parsecs away

Travel
| | Incidentally, decoding JSON data (or really, almost any data structure) isreally easy in Go (golang). We simply call json.Unmarshal(...) andboom! We have nice data structures.
| | www.alexedwards.net
1.6 parsecs away

Travel
| |
| | masnun.com
2.4 parsecs away

Travel
| | In Go or Golang, declaring an interface is pretty simple and easy. type Printer interface { Print(string) } We just defined an interface named Printerthat required an implementer to have a method named Printwhich takes a stringparameter and returns nothing. Interfaces are implemented implicitly in Go. Any type that has the Print(string)method implements the interface. [...]
| | lanie.dev
17.0 parsecs away

Travel
| So you want to parse a form. You have your handler, and you're getting data passed in through the request. 1 2 3 4 5 package example func Login(w http.ResponseWriter, r *http.Request) { // hi (: } The next step is to parse the form on the request. 1 2 3 4 5 6 func Login(w http.ResponseWriter, r *http.Request) { var err error if err := r.