server

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package server implements an example server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.6.0

type Server struct {
	// contains filtered or unexported fields
}

Server is an example server.

func New added in v0.6.0

func New(nowFunc func() time.Time) *Server

New constructs a new Server, which greets people based on the time returned by the given nowFunc. If nowFunc is nil, the Server will default to time.Now.

func (*Server) Greet added in v0.6.0

func (s *Server) Greet(name, birthDate string) (string, error)

Greet is an example fuzzable function. name is free form, but birthDate must be in YYYY-MM-DD format.

func (*Server) Serve added in v0.6.0

func (*Server) Serve() string

Serve is an example function.

Jump to

Keyboard shortcuts

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