mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-13 00:28:09 +00:00

* Snake-case-ify def names in comments * Snake-case-ify def names in strings * Snake-case-ify ignored function parameters * Snake-case-ify test script names, for consistency * Update CI snapshot to match snake_case * snake case correction --------- Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
15 lines
474 B
Text
15 lines
474 B
Text
app [main!] { pf: platform "platform/main.roc" }
|
|
|
|
import Base64
|
|
import pf.Host
|
|
|
|
main! : {} => {}
|
|
main! = \{} ->
|
|
when Base64.from_bytes(Str.to_utf8("Hello World")) is
|
|
Err(_) -> Host.put_line!("sadness")
|
|
Ok(encoded) ->
|
|
Host.put_line!(Str.concat("encoded: ", encoded))
|
|
|
|
when Base64.to_str(encoded) is
|
|
Ok(decoded) -> Host.put_line!(Str.concat("decoded: ", decoded))
|
|
Err(_) -> Host.put_line!("sadness")
|