Skip to content

lost22git/fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fmt

gleam string format

import gleeunit
import gleeunit/should
import gleam/dynamic
import fmt
pub fn fmt_test() {
  fmt.fmt("{2:->10} 🐖 {{{:^10}}} 💊 {0:-<10}", [
    dynamic.from("foo"),
    dynamic.from("bar"),
    dynamic.from([1, 2]),
  ])
  |> should.equal("----[1, 2] 🐖 {  \"bar\"   } 💊 \"foo\"-----")
}

Further documentation can be found at https://hexdocs.pm/fmt.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

Releases

No releases published

Packages

No packages published

Languages