Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pet

type Pet struct{ ID, Name, Kind string }

type Pets

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

Pets is the example application's in-memory store, ordered by creation.

func (*Pets) Create

func (s *Pets) Create(name, kind string) Pet

func (*Pets) Get

func (s *Pets) Get(id string) (Pet, bool)

func (*Pets) List

func (s *Pets) List() []Pet

Jump to

Keyboard shortcuts

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