From f42ae274be747fa763484017c799e2ff1318fbb4 Mon Sep 17 00:00:00 2001 From: tfrench Date: Wed, 21 Aug 2024 17:03:45 +0000 Subject: [PATCH] test a fake PR --- go/tools/internal/txtar/archive.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/go/tools/internal/txtar/archive.go b/go/tools/internal/txtar/archive.go index c384f33bdf..7a7d7f243f 100644 --- a/go/tools/internal/txtar/archive.go +++ b/go/tools/internal/txtar/archive.go @@ -6,15 +6,15 @@ // // The goals for the format are: // -// - be trivial enough to create and edit by hand. -// - be able to store trees of text files describing go command test cases. -// - diff nicely in git history and code reviews. +// - be trivial enough to create and edit by hand. +// - be able to store trees of text files describing go command test cases. +// - diff nicely in git history and code reviews. // // Non-goals include being a completely general archive format, // storing binary data, storing file modes, storing special files like // symbolic links, and so on. // -// Txtar format +// # Txtar format // // A txtar archive is zero or more comment lines and then a sequence of file entries. // Each file entry begins with a file marker line of the form "-- FILENAME --" @@ -44,10 +44,15 @@ type Archive struct { Files []File } +type NewType struct { + Test string +} + // A File is a single file in an archive. type File struct { - Name string // name of file ("foo/bar.txt") - Data []byte // text content of file + Name string // name of file ("foo/bar.txt") + Data []byte // text content of file + Something byte } // Format returns the serialized form of an Archive.