Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lost22git/fmt
gleam string format
https://github.com/lost22git/fmt
fmt gleam-lang
Last synced: about 2 months ago
JSON representation
gleam string format
- Host: GitHub
- URL: https://github.com/lost22git/fmt
- Owner: lost22git
- License: mit
- Created: 2024-03-23T06:35:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-23T06:37:21.000Z (10 months ago)
- Last Synced: 2024-03-23T07:41:00.224Z (10 months ago)
- Topics: fmt, gleam-lang
- Language: Gleam
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fmt
gleam string format
```gleam
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 .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```