intro19

package
v0.0.0-...-aeea102 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package intro19 provides the implementation of the introduction to golang (version 2019) example code

Index

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

Jump to

Keyboard shortcuts

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