Git Product home page Git Product logo

go-playground's Introduction

Natively curious human, passionate about building things that bring people joy. I'm Oana ๐Ÿ‘‹

go-playground's People

Contributors

oanaom avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

go-playground's Issues

Trying to retrieve the temperature

when unmarshalling the forecast request I get:

Request succesfully to https://api.darksky.net/forecast/cb957c717f54f7a29bfb14de577110cc/1.29736,52.63090 ... weatherToday: map[data:[map[apparentTemperature:90.18 cloudCover:0.57 dewPoint:69.72 humidity:0.59 icon:partly-cloudy-day ozone:260.8 precipIntensity:0.0005 precipProbability:0.05 precipType:rain pressure:1009.3 summary:Partly Cloudy temperature:85.7 time:1.5725988e+09 uvIndex:8 visibility:10 windBearing:253 windGust:11.91 windSpeed:11.9] ....

I need to figure out how to retrieve the temperature from a map in map or change the logic to use struct

Update instructions to run the project

Unsure why, but simply running the instructions from the README does not work. I tried the following:

tudor ~/work/oana/go-playground[master]$ ./bin/weather 
Hello, my Go ^_^
tudor ~/work/oana/go-playground[master]$ ./bin/hello
Hello, my Go ^_^
tudor ~/work/oana/go-playground[master]$ ./bin/weather 
Hello, my Go ^_^
tudor ~/work/oana/go-playground[master]$ go run ./src/weather/weather.go 
Starting my app ... 
Request succesfully to  https://httpbin.org/ip  ... 
Starting my app ... 
Request succesfully to  https://api.ipgeolocation.io/ipgeo?apiKey=d2dfba9048bf4c7594fc4c17f0b0956c&ip=80.169.155.10  ... 
Starting my app ... 
Request succesfully to  https://api.darksky.net/forecast/cb957c717f54f7a29bfb14de577110cc/-0.12570,51.50850  ... 
Having a nice time in London ?  
 It looks like the weather's  Humid and partly cloudy throughout the day.
tudor ~/work/oana/go-playground[master]$ 

to finally get it working. Maybe the README needs to be clearer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.