oak-go 0.0.11

High-performance incremental Go parser for the oak ecosystem with flexible configuration, supporting concurrent programming and cloud-native development.
Documentation
#![doc = include_str!("readme.md")]

use oak_pretty_print::Document;

/// Formatter trait.
#[allow(dead_code)]
pub trait Formatter {
    /// Formats the given AST.
    fn format(&self, code: &str) -> Document<'_>;
}

/// Go formatter.
pub struct GoFormatter;

impl GoFormatter {
    pub fn new() -> Self {
        Self
    }
}

impl Formatter for GoFormatter {
    fn format(&self, _text: &str) -> Document<'_> {
        Document::Nil
    }
}