Skip to content

fix: Endpoint "/v2/weather/{city}" error in model#50

Merged
robertoduessmann merged 1 commit intorobertoduessmann:masterfrom
ranierelima:master
Apr 1, 2025
Merged

fix: Endpoint "/v2/weather/{city}" error in model#50
robertoduessmann merged 1 commit intorobertoduessmann:masterfrom
ranierelima:master

Conversation

@ranierelima
Copy link
Copy Markdown
Contributor

Changed type of field "UvIndex" from int to string. Also created a new file for mapping of json response from API

wttrURL = "https://wttr.in"
)

type wttrResponse struct {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing 👌


var instance CacheManager = nil

func NewCacheManager() CacheManager {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice cache implementation, I think it can be a really nice improvement.
I'm just wondering where/how exactly is this being used/invoked. Maybe I'm missing how this gets injected in the module.

Copy link
Copy Markdown
Owner

@robertoduessmann robertoduessmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna merge to fix the error in v2 🚀

@robertoduessmann robertoduessmann merged commit 83dc5b9 into robertoduessmann:master Apr 1, 2025
@ranierelima
Copy link
Copy Markdown
Contributor Author

Hi @robertoduessmann , I apologize for the delay in responding and also apologize because the Cache module was not complete.

I was developing in parallel and ended up committing it accidentally.

The idea was to create two classes for the Controllers and add the Cache Interface, using the Dependency Inversion concept.

@robertoduessmann
Copy link
Copy Markdown
Owner

No worries @ranierelima I took your cache implementation as based and add this #56 to start using it 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants