Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaygelle committed Dec 11, 2023
1 parent 7cc2b26 commit 1cd4eb7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

Nook exports basic information for characters that appear in the video game series [Animal Crossing](https://animal-crossing.com/).

[![Go Reference](https://pkg.go.dev/badge/github.com/lindsaygelle/nook.svg)](https://pkg.go.dev/github.com/lindsaygelle/nook)
[![GitHub](https://img.shields.io/github/license/lindsaygelle/nook)](/LICENSE)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/lindsaygelle/nook)](https://pkg.go.dev/github.com/lindsaygelle/nook)
[![Go Report Card](https://goreportcard.com/badge/github.com/lindsaygelle/nook)](https://goreportcard.com/report/github.com/lindsaygelle/nook)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/lindsaygelle/nook)](https://github.com/lindsaygelle/nook/releases)
[![GitHub](https://img.shields.io/github/license/lindsaygelle/nook)](LICENSE.txt)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)


## Introduction
Expand Down Expand Up @@ -122,9 +125,9 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
}

// createVillagersHandler creates an HTTP request handler for specific animal type villagers.
// It receives a slice of nook.Villagers for the specified animal type and returns an HTTP response with JSON data of the villagers.
// It receives a nook of nook.Villagers for the specified animal type and returns an HTTP response with JSON data of the villagers.
func createVillagersHandler(villagers nook.Villagers) http.HandlerFunc {
// Marshal the provided villagers into a JSON byte slice.
// Marshal the provided villagers into a JSON byte nook.
b, err := json.Marshal(villagers)
if err != nil {
// If there is an error during JSON marshaling, panic with the error.
Expand Down Expand Up @@ -203,7 +206,7 @@ func makeVillagers(villagers ...nook.Villager) []Villager {
}

func main() {
// Create a slice of Villagers from the alligators slice.
// Create a slice of Villagers from the alligators nook.
villagers := makeVillagers(alligators...)

// Greet each villager and print their friendly messages.
Expand Down

0 comments on commit 1cd4eb7

Please sign in to comment.