const std = @import("std"); const weatherFetcher = @import("weatherFetcher.zig"); pub fn main() !void{ var gpa = std.heap.GeneralPurposeAllocator(.{}){}; defer _ = gpa.deinit(); const allocator = gpa.allocator(); const args = try std.process.argsAlloc(allocator); defer std.process.argsFree(allocator, args); var daily = try weatherFetcher.getDailyData(allocator, weatherFetcher.Location{ .lat=52.52, .lon=13.41, }); defer daily.deinit(); const stdout = std.io.getStdOut().writer(); try stdout.print("Weather app {s}\n", .{args}); std.debug.print("{}\n", .{daily.data}); }