100-go-mistakes/docs/img/ioreaderwriter.svg
2024-03-05 21:59:42 +01:00

3 lines
No EOL
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="381px" height="381px" viewBox="-0.5 -0.5 381 381" content="&lt;mxfile host=&quot;Electron&quot; modified=&quot;2021-08-26T19:22:15.774Z&quot; agent=&quot;5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/14.5.1 Chrome/89.0.4389.82 Electron/12.0.1 Safari/537.36&quot; etag=&quot;xjWzLTUYnKz6Q9n8Ww_x&quot; version=&quot;14.5.1&quot; type=&quot;device&quot;&gt;&lt;diagram id=&quot;iGYD3fZKJpGpnjSP-f-N&quot; name=&quot;Page-1&quot;&gt;7VnbbuIwEP0aHqlypfBYLr1ou9qqdNV231xigrUhRo4poV+/Y+IQOw6XtoRSaZ/wTJyxfebMiW0abm+aXjE0m/ykAY4ajhWkDbffcBzbtlrwIzzLzNPpnGeOkJFAdiocQ/KGpdOS3jkJcKJ15JRGnMx054jGMR5xzYcYowu925hG+qgzFGLDMRyhyPQ+koBP8nW1OsWDa0zCiRy67cj1TVHeWa4kmaCALhSXO2i4PUYpz1rTtIcjAV6OS/be5Yan64kxHPN9XhjcW2mSvN118c1v5+GP/WPQazZllFcUzeWC+4gj8AzpnI2wnDlf5nBASEAejC4sZyaco4jOYYTuYkI4Hs7QSDgXQAbwTfg0AsuG5pjGXGbX9sA2Z59PBTOOU8UlV3OF6RRztoQu8qnjSWQltewc6YWSKFf6JmqOpA9JboTr0AV80JAIvgNN10DTBDAOLgQtwYppjLeDhFPCn8CwznxpPQtLtvupaiylkXDEeD7EKEJJQka5+5JE+VAwD2lZ27KRZDTYQiC5RAgfYr6baTjQ6s1MrpI8vyJ3uY/hCHHyqldpVULlCHeUwNLW3HEtX+OOc17iRLZw+ZZaVaVAfkcnoWuVAmXAGIFW/Fov++OUOzcod49RYNIOYL9FLyDOGuFQRMJY8ATyjhk4RPURUL8L+WBKgkDE6DKckDf0soonGDMTC1ot0e82/P5eFb61Zsplv5Z0OaimmlVy0LTOrHbL07LR9A7ClmZ11DwAHY8TXEt2PSO7D1mdnbIue51T0+WWAeMjA1S2iXOhnAfW540A71RQb08FlWmAcrAd10C+RlH1/QOJatv7mKgWgeovzU7Ft74VAaBdAo1w1aBnQoxBWOUTGGj9UEwyBqG2ql5b0XPTazdCq8dQ0IlBYKhQrlM24Yz+xT0aUVZsOcbw5S+59v8SVAkKo/M4wIGkuFomrUPt9XRqtU1JcV3fZLZTl6Tk+x4l/0q6N6rzDjVGySw7xIxJKuCsZdvc2lClCpbtY6qzbW6blRI4ZSh9+9SgrFKlEoIhFOts/8W/ex/muiXx7pigOFYFKl5tqJjbqGsDFl3CPr1r2p6e3QxTwPKOipVvYDU4daxSHZMvg87cZt5+E+gqPqfHhc48xn4X6KpON8fFrm1g9+u7YNf6Yuzy3CnYvSzFwdBKIlJx/Xl6++sD7WTctv7R9irE1K76aNe2wXbMq2kjHYc5r9tbz+uAKVs+qcZzEUGYxWsra+c5/4BXqvveCBzp+F8+tfslbtR9pwpcQEulm7yj3Djh8iWwZ2v/oEAji3jQe4OcxnXw2lZYXXB8F68LKq+roR5et/fltfuf15/hdfke7pO8BrP4lzLrXvzX6w7+AQ==&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs/><g><path d="M 32.5 60 C 6.5 60 0 80 20.8 84 C 0 92.8 23.4 112 40.3 104 C 52 120 91 120 104 104 C 130 104 130 88 113.75 80 C 130 64 104 48 81.25 56 C 65 44 39 44 32.5 60 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 128px; height: 1px; padding-top: 80px; margin-left: 1px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Data Source</div></div></div></foreignObject><text x="65" y="84" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">Data Source</text></switch></g><path d="M 65 183.63 L 65 120" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 65 188.88 L 61.5 181.88 L 65 183.63 L 68.5 181.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 155px; margin-left: 66px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; ">Read</div></div></div></foreignObject><text x="66" y="159" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">Read</text></switch></g><path d="M 282.5 60 C 256.5 60 250 80 270.8 84 C 250 92.8 273.4 112 290.3 104 C 302 120 341 120 354 104 C 380 104 380 88 363.75 80 C 380 64 354 48 331.25 56 C 315 44 289 44 282.5 60 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 128px; height: 1px; padding-top: 80px; margin-left: 251px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Target</div></div></div></foreignObject><text x="315" y="84" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">Target</text></switch></g><path d="M 315 190 L 315 126.37" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 315 121.12 L 318.5 128.12 L 315 126.37 L 311.5 128.12 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 155px; margin-left: 315px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; background-color: #ffffff; white-space: nowrap; ">Write</div></div></div></foreignObject><text x="315" y="159" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">Write</text></switch></g><rect x="5" y="0" width="335" height="20" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 333px; height: 1px; padding-top: 10px; margin-left: 6px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 16px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; "><i>io.Reader</i> and <i>io.Writer</i> Interfaces</div></div></div></foreignObject><text x="173" y="15" fill="#000000" font-family="Helvetica" font-size="16px" text-anchor="middle">io.Reader and io.Writer Interfaces</text></switch></g><ellipse cx="65" cy="230" rx="40" ry="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 78px; height: 1px; padding-top: 230px; margin-left: 26px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">io.Reader</div></div></div></foreignObject><text x="65" y="234" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">io.Reader</text></switch></g><ellipse cx="315" cy="230" rx="40" ry="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 78px; height: 1px; padding-top: 230px; margin-left: 276px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">io.Writer</div></div></div></foreignObject><text x="315" y="234" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">io.Writer</text></switch></g><rect x="90" y="310" width="40" height="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 330px; margin-left: 91px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">H</div></div></div></foreignObject><text x="110" y="334" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">H</text></switch></g><rect x="130" y="310" width="40" height="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 330px; margin-left: 131px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">E</div></div></div></foreignObject><text x="150" y="334" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">E</text></switch></g><rect x="170" y="310" width="40" height="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 330px; margin-left: 171px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">L</div></div></div></foreignObject><text x="190" y="334" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">L</text></switch></g><rect x="210" y="310" width="40" height="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 330px; margin-left: 211px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">L</div></div></div></foreignObject><text x="230" y="334" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">L</text></switch></g><rect x="250" y="310" width="40" height="40" fill="#ffffff" stroke="#000000" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 38px; height: 1px; padding-top: 330px; margin-left: 251px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">O</div></div></div></foreignObject><text x="270" y="334" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">O</text></switch></g><rect x="140" y="360" width="100" height="20" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 370px; margin-left: 141px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; "><div style="display: inline-block; font-size: 14px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">byte slice</div></div></div></foreignObject><text x="190" y="374" fill="#000000" font-family="Helvetica" font-size="14px" text-anchor="middle">byte slice</text></switch></g><path d="M 65 270 L 65 320 Q 65 330 74.32 330 L 83.63 330" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 88.88 330 L 81.88 333.5 L 83.63 330 L 81.88 326.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/><path d="M 290 330 L 305 330 Q 315 330 315 320 L 315 276.37" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 315 271.12 L 318.5 278.12 L 315 276.37 L 311.5 278.12 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text></a></switch></svg>