6 releases

0.3.3 Sep 30, 2018
0.3.2 Sep 30, 2018
0.3.1 Mar 29, 2018
0.3.0 Feb 14, 2018
0.1.0 Nov 14, 2017

#4 in #golang

Download history 137/week @ 2020-02-28 186/week @ 2020-03-06 175/week @ 2020-03-13 186/week @ 2020-03-20 165/week @ 2020-03-27 310/week @ 2020-04-03 446/week @ 2020-04-10 409/week @ 2020-04-17 402/week @ 2020-04-24 422/week @ 2020-05-01 396/week @ 2020-05-08 392/week @ 2020-05-15 385/week @ 2020-05-22 397/week @ 2020-05-29 464/week @ 2020-06-05 347/week @ 2020-06-12

1,048 downloads per month
Used in 6 crates (5 directly)

MIT license

22KB
506 lines

gtmpl_value   Build Status Latest Version

The internal value type for gmtpl-rust


[dependencies]
gtmpl_value = "0.3.3"

Current State

gtmpl_value is a basic implementation for internal values within gtmpl-rust. It is used as to represent values parsed from the template and from the context.

Usage

The From trait is implemented for:

  • String, &str
  • most numeric types u64, u32,, i64, i32,, f64, f32
  • bool
  • Vec<Value>, &[Value]
  • HashMap<String, Value>

gtmpl_derive provides a custom derive for structs.

extern crate gtmpl_value;
use gtmpl_value::Value;

fn main() {
    let v: Value = "something".into();
    println!("{}", v);
}

No runtime deps