Documentation ¶ Overview ¶ Package intro19 provides the implementation of the introduction to golang (version 2019) example code Index ¶ Variables func RunServer(addr string) error type Format Constants ¶ This section is empty. Variables ¶ View Source var ConverterFormats = make(map[string]Format) ConverterFormats holds all registered formats Functions ¶ func RunServer ¶ func RunServer(addr string) error RunServer executes the server logic Types ¶ type Format ¶ type Format interface { // Decode takes the reader and decodes its contents onto v Decode(r io.Reader, v interface{}) error // Encode takes v and encodes its contents onto the writer Encode(rw http.ResponseWriter, v interface{}) error } Format defines a converter format implementation Source Files ¶ View all Source files conv.go conv_json.go conv_yaml.go hello.go intro19.go prettify.go pubsub.go Click to show internal directories. Click to hide internal directories.