Skip to content

Commit

Permalink
✨ Correct JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiRequiem committed Sep 22, 2021
1 parent 89112dc commit 9de2774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ package internal

// Root path Response
type FibonacciNumber struct {
Number int
Number int `json:"number"`
}

// sequence path JSON Response
type FibonacciNumberSequence struct {
Numbers []int
Numbers []int `json:"numbers"`
}

// Error JSON Response
type EchoError struct {
Message error
Code int
Message error `json:"message"`
Code int `json:"code"`
}

0 comments on commit 9de2774

Please sign in to comment.