webclock

package
v0.0.0-...-451f520 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

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

func Register(mux *http.ServeMux)
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL