d-weather-forecast 2.0.0
Get weather forecast with the D programming language
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
D Weather Forecast
Get weather forecast from http://forecast.weather.gov with the D programming language
Example
import weather_forecast : getForecast, WeatherData;
import std.stdio : stdout;
getForecast(delegate(WeatherData weather_data, Exception err) {
if (! err) {
stdout.writefln("%s, %s", weather_data.city, weather_data.region);
stdout.writefln("%s", weather_data.summary);
stdout.writefln("%s F", weather_data.temperature);
}
});
/*
San Francisco, California
Mostly Sunny
76 F
*/
Documentation
https://workhorsy.github.io/d-weather-forecast/2.0.0/
Generate documentation
dub --build=docs
Run unit tests
dub test
- Registered by Matthew Jones
- 2.0.0 released 4 years ago
- workhorsy/d-weather-forecast
- github.com/workhorsy/d-weather-forecast
- BSL-1.0
- Copyright (c) 2017-2020 Matthew Brennan Jones
- Authors:
- Dependencies:
- none
- Versions:
-
2.0.0 2020-Jun-08 1.3.0 2017-Dec-28 1.2.0 2017-Sep-17 1.1.0 2017-Sep-08 ~master 2020-Jun-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
21 downloads total
-
- Score:
- 0.6
- Short URL:
- d-weather-forecast.dub.pm