Current section

Files

Jump to
gserde src internal foo.gleam
Raw

src/internal/foo.gleam

import gleam/option.{type Option, Some}
pub type FooJson {
Foo(
a_bool: Bool,
b_int: Int,
c_float: Float,
d_two_tuple: #(Int, String),
e_option_int: Option(Int),
f_string_list: List(String),
)
}
pub fn fixture_foo() {
Foo(
a_bool: True,
b_int: 1,
c_float: 1.0,
d_two_tuple: #(2, "3"),
e_option_int: Some(4),
f_string_list: ["a", "b"],
)
}