Debian Codegraph @

firestore/examples/end2end/src/userutil/drawdocument.go

raw
1 package userutil
2
3 import (
4 "fmt"
5
6 firestore "go-genproto/googleapis/firestore/v1beta1"
7 )
8
9 //DrawDocument ... Draw Document Name and Fields
10 func DrawDocument(doc firestore.Document) {
11
12 fmt.Println("\n\nDocument Name:", doc.Name)
13 fmt.Println(" Fields: ")
14 for field, value := range doc.Fields {
15 fmt.Printf(" %v : %v\n", field, value.GetStringValue())
16 }
17
18 }