/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

damienradtke.com
| | avelino.run

A linguagem Go é um projeto open source para tornar os programadores mais produtivos. Go foi desenvolvido para utilização maxima do CPU, tornando um processo simples para criar aplicação Multithreaded, o processo de utilização de maquinas na rede para processar determinado programa também é bem simples, assim tornando um software mais flexível e modular. Vamos montar um servidor HTTP em Go. package main import ( "http"; "io"; "fmt"; ) func HelloServer(c *http.Conn, req *http.Request) { io.WriteString(c, "hello, world!\n"); } func main() { fmt.Printf("http://localhost:8080/hello\n"); http.Handle("/hello", http.HandlerFunc(HelloServer)); err := http.ListenAndServe(":8080", nil); if err != nil { panic("ListenAndServe: ", err.String()) } } O HelloServer() é o qu...
4.3 parsecs

Travel
| |
| | aarol.dev

TLDR: # http.ListenAndServe(":8080", nil) // bad http.ListenAndServe("localhost:8080", nil) // good If you are using Go with Windows, you might ...
3.9 parsecs

Travel
| |
| | infinitedigits.co

A simple pattern to get started using websockets with Go.
4.0 parsecs

Travel
| |
| | hjr265.me

In Windows, unlike the Unix-like POSIX-compatible operating systems, there is this notion of an application subsystem: console vs. windows. If you build a Go program for Windows, it will, by default, use the console subsystem. When you start this program from File Explorer (e.g. by double-clicking its icon), Windows will show a console (like the Command Prompt window) and run the program inside the console. When running a console subsystem program that finishes quickly, you may notice the console window appears and disappears quickly.
15.5 parsecs

Travel
|