Current section

Files

Jump to
go_over src go_over@yaml.erl
Raw

src/go_over@yaml.erl

-module(go_over@yaml).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([parse/1]).
-spec parse(binary()) -> {binary(),
binary(),
binary(),
binary(),
list(binary())}.
parse(Path) ->
{Id, Name, Severity, Desc, Versions} = yamll:parse(Path),
{gleam_stdlib:utf_codepoint_list_to_string(Id),
gleam_stdlib:utf_codepoint_list_to_string(Name),
gleam_stdlib:utf_codepoint_list_to_string(Severity),
gleam_stdlib:utf_codepoint_list_to_string(Desc),
gleam@list:map(
Versions,
fun gleam_stdlib:utf_codepoint_list_to_string/1
)}.