I'm MysticalDevil, a beginner programmer.
const std = @import("std");
const User = struct {
name: []const u8,
role: []const u8,
editor: []const u8,
languages: []const []const u8,
building: []const []const u8,
};
pub fn main() !void {
const me = User{
.name = "MysticalDevil",
.role = "beginner programmer",
.editor = "Neovim",
.languages = &.{ "Go", "Zig", "Lua" },
.building = &.{ "gout", "zite", "nvim config" },
};
std.debug.print("== {s}'s Terminal Dashboard ==\n", .{me.name});
std.debug.print("role : {s}\n", .{me.role});
std.debug.print("editor : {s}\n", .{me.editor});
std.debug.print("languages : ", .{});
for (me.languages, 0..) |lang, i| {
if (i != 0) std.debug.print(" | ", .{});
std.debug.print("{s}", .{lang});
}
std.debug.print("\n", .{});
std.debug.print("building : ", .{});
for (me.building, 0..) |project, i| {
if (i != 0) std.debug.print(", ", .{});
std.debug.print("{s}", .{project});
}
std.debug.print("\nstatus : shipping small things, learning fast\n", .{});
}Primary editor: Neovim



