{"success":true,"data":{"ext":"gdoc","name":"Google Drive Document link","description":"Google Drive Document link (gdoc) is a shortcut file format created and maintained by Google to point to an online Google Docs document. It is commonly used for desktop shortcuts, shared document references, and synchronized access from file managers or backup tools. Because it contains only a reference to a remote document, the file is generally safe, but users should verify the target source before opening shared links.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7B 22 75 72 6C 22 3A 20 22 68 74 74 70 73 3A 2F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["gdraw"],"usage":{"python":"def is_gdoc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GDOC by magic bytes.\"\"\"\n    signature = bytes([0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isGDOC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsGDOC(data []byte) bool {\n    signature := []byte{0x7B, 0x22, 0x75, 0x72, 0x6C, 0x22, 0x3A, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3A, 0x2F}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"}}}