github.com/go-kivik/kivik/v4@v4.3.2/x/fsdb/cdb/testdata/TestDocumentAddRevision_upload_attachment (about)

     1  (*cdb.Document)({
     2    ID: (string) (len=3) "foo",
     3    Revisions: (cdb.Revisions) (len=1) {
     4      (*cdb.Revision)({
     5        RevMeta: (cdb.RevMeta) {
     6          Rev: (cdb.RevID) {
     7            Seq: (int64) 1,
     8            Sum: (string) (len=32) "1472ad25836971f236294ad7b19d9f65",
     9            original: (string) ""
    10          },
    11          Deleted: (*bool)(<nil>),
    12          Attachments: (map[string]*cdb.Attachment) (len=1) {
    13            (string) (len=8) "!foo.txt": (*cdb.Attachment)({
    14              ContentType: (string) (len=10) "text/plain",
    15              RevPos: (*int64)(1),
    16              Stub: (bool) false,
    17              Follows: (bool) false,
    18              Content: ([]uint8) <nil>,
    19              Size: (int64) 17,
    20              Digest: (string) (len=28) "md5-2eNn4v/9o9ZdZp3E8/d4Cw==",
    21              path: (string) (len=X) "<tmpdir>/.foo/1-1472ad25836971f236294ad7b19d9f65/!foo.txt",
    22              fs: (*filesystem.defaultFS)({
    23              }),
    24              outputStub: (bool) true
    25            })
    26          },
    27          RevHistory: (*cdb.RevHistory)({
    28            Start: (int64) 1,
    29            IDs: ([]string) (len=1) {
    30              (string) (len=32) "1472ad25836971f236294ad7b19d9f65"
    31            }
    32          }),
    33          isMain: (bool) false,
    34          path: (string) "",
    35          fs: (*filesystem.defaultFS)({
    36          })
    37        },
    38        Data: (map[string]interface {}) (len=1) {
    39          (string) (len=5) "value": (string) (len=3) "bar"
    40        },
    41        options: (map[string]interface {}) <nil>
    42      })
    43    },
    44    RevsInfo: ([]cdb.RevInfo) <nil>,
    45    RevHistory: (*cdb.RevHistory)(<nil>),
    46    Options: (map[string]interface {}) <nil>,
    47    cdb: (*cdb.FS)({
    48      fs: (*filesystem.defaultFS)({
    49      }),
    50      root: (string) (len=X) "<tmpdir>"
    51    })
    52  })