Gleam-inspired typed configuration language (POC)
0

Configure Feed

Select the types of activity you want to include in your feed.

glint / examples / demo / src / demo.gleam
437 B 18 lines
1//// Example: load a `.glint` config and use it. 2//// 3//// cd examples/demo && gleam run 4 5import gleam/int 6import gleam/io 7import glint 8 9pub fn main() -> Nil { 10 let c = glint.file("config.glint") 11 let name = glint.string(c, "name") 12 let mode = glint.unit(c, "mode") 13 let port = glint.int(c, "port") 14 15 io.println(name <> " (" <> mode <> ")") 16 io.println("port " <> int.to_string(port)) 17 io.println(glint.string(c, "greeting")) 18}