jookyboi
2/20/2019 - 3:19 PM

Example gist for Cacher

Example gist for Cacher

public class HelloWorld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello, World");
    }

}
extern crate serde; // 1.0.85
extern crate serde_json; // 1.0.37

use serde::Serialize;

fn test(a: impl Serialize) {
    println!("{}", serde_json::to_string_pretty(&a).unwrap());
}

fn main() {
    test(25u32);
}