// batless Theme Showcase Example
// This file demonstrates syntax highlighting across various themes
use std::collections::HashMap;
use std::fs::File;
use std::io::{self, Read, Write};
/// Configuration struct for the application
#[derive(Debug, Clone)]
pub struct Config {
pub name: String,
pub port: u16,
pub enabled: bool,
}
impl Config {
/// Creates a new configuration with default values
pub fn new(name: &str) -> Self {
Self {
name: name.to_string(),
// Output truncated after 20 lines