Documentation ¶
Overview ¶
Package webclock implements a trivial websocket-based clock.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Example ¶
package main import ( "flag" "log" "net/http" ) func main() { var addr string flag.StringVar(&addr, "http", "localhost:8082", "listen here") flag.Parse() log.Printf("serving on %s", addr) err := http.ListenAndServe(addr, nil) if err != nil { log.Printf("error in server: %s", err) } }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.