From d11a5a505d4e936f6744b854937e4929eede9d5d Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 20 Jan 2024 10:57:28 -0800 Subject: [PATCH] initial commits --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index cce8e6f..256e695 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,20 @@ Or in hexadecimal this would be: For now the only version of the **zarf format** is version 1. So you should just look for the "1" character (i.e., hexadecimal `0x31`). +### Writing The First and Second Lines + +If you are creating a **zarf** file, then you can create the first and second lines of a **zarf** file with code like the following — + +In the Go programming language, it would look like: + +```go +var writer io.Writer = os.Stdout // you can change this from os.Stdout to a file + +// ... + +fmt.Fprintln(writer, "ZARF/1") +fmt.Fprintln(writer) +```