Package textinput is the contract between a text widget and an input method (an IME, a screen reader, a mobile keyboard), with no dependency beyond the standard library.
Amber is an elegant templating engine for Go Programming Language It is inspired from HAML and Jade Tags A tag is simply a word: html is converted to <html></html> It is possible to add ID and CLASS attributes to tags: div#main span.time are converted to <div id="main"></div> <span class="time"></span> Any arbitrary attribute name / value pair can be added this way: a[href="http://www.google.com"] You can mix multiple attributes together a#someid[href="/"][title="Main Page"].main.link Click Link gets converted to <a id="someid" class="main link" href="/" title="Main Page">Click Link</a> It is also possible to define these attributes within the block of a tag a #someid [href="/"] [title="Main Page"] .main .link | Click Link Doctypes To add a doctype, use `!!!` or `doctype` keywords: !!! transitional // <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> or use `doctype` doctype 5 // <!DOCTYPE html> Available options: `5`, `default`, `xml`, `transitional`, `strict`, `frameset`, `1.1`, `basic`, `mobile` Tag Content For single line tag text, you can just append the text after tag name: p Testing! would yield <p>Testing!</p> For multi line tag text, or nested tags, use indentation: html head title Page Title body div#content p | This is a long page content | These lines are all part of the parent p a[href="/"] Go To Main Page Data Input template data can be reached by key names directly.
Amber is an elegant templating engine for Go Programming Language It is inspired from HAML and Jade Tags A tag is simply a word: html is converted to <html></html> It is possible to add ID and CLASS attributes to tags: div#main span.time are converted to <div id="main"></div> <span class="time"></span> Any arbitrary attribute name / value pair can be added this way: a[href="http://www.google.com"] You can mix multiple attributes together a#someid[href="/"][title="Main Page"].main.link Click Link gets converted to <a id="someid" class="main link" href="/" title="Main Page">Click Link</a> It is also possible to define these attributes within the block of a tag a #someid [href="/"] [title="Main Page"] .main .link | Click Link Doctypes To add a doctype, use `!!!` or `doctype` keywords: !!! transitional // <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> or use `doctype` doctype 5 // <!DOCTYPE html> Available options: `5`, `default`, `xml`, `transitional`, `strict`, `frameset`, `1.1`, `basic`, `mobile` Tag Content For single line tag text, you can just append the text after tag name: p Testing! would yield <p>Testing!</p> For multi line tag text, or nested tags, use indentation: html head title Page Title body div#content p | This is a long page content | These lines are all part of the parent p a[href="/"] Go To Main Page Data Input template data can be reached by key names directly.
Package window is the easiest way to open a window and render graphics. The window package effectively provides an easy cross-platform way to create and configure a window, as well as manipulate it and receive user input from it efficiently. The window package lays the groundwork for developing applications that are truly cross-platform (i.e. desktop and mobile applications) using nearly the exact same API in the future. As such, the window package is mostly just an abstraction layer for GLFW on desktop operating systems. If you truly need features not found in this package then you might be best using GLFW directly if you intend to just write desktop applications. Some features are not supported by this package intentionally, like multiple windows because mobile devices don't have them. The goal of the window package is not to provide a one solution fits all, it is instead to abstract away the tedious parts of writing cross-device applications in the future. The window package is also extremely simple to use:
Amber is an elegant templating engine for Go Programming Language It is inspired from HAML and Jade Tags A tag is simply a word: html is converted to <html></html> It is possible to add ID and CLASS attributes to tags: div#main span.time are converted to <div id="main"></div> <span class="time"></span> Any arbitrary attribute name / value pair can be added this way: a[href="http://www.google.com"] You can mix multiple attributes together a#someid[href="/"][title="Main Page"].main.link Click Link gets converted to <a id="someid" class="main link" href="/" title="Main Page">Click Link</a> It is also possible to define these attributes within the block of a tag a #someid [href="/"] [title="Main Page"] .main .link | Click Link Doctypes To add a doctype, use `!!!` or `doctype` keywords: !!! transitional // <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> or use `doctype` doctype 5 // <!DOCTYPE html> Available options: `5`, `default`, `xml`, `transitional`, `strict`, `frameset`, `1.1`, `basic`, `mobile` Tag Content For single line tag text, you can just append the text after tag name: p Testing! would yield <p>Testing!</p> For multi line tag text, or nested tags, use indentation: html head title Page Title body div#content p | This is a long page content | These lines are all part of the parent p a[href="/"] Go To Main Page Data Input template data can be reached by key names directly.
Package null contains SQL types that consider zero input and null input as separate values, with convenient support for JSON and text marshaling.
Amber is an elegant templating engine for Go Programming Language It is inspired from HAML and Jade Tags A tag is simply a word: html is converted to <html></html> It is possible to add ID and CLASS attributes to tags: div#main span.time are converted to <div id="main"></div> <span class="time"></span> Any arbitrary attribute name / value pair can be added this way: a[href="http://www.google.com"] You can mix multiple attributes together a#someid[href="/"][title="Main Page"].main.link Click Link gets converted to <a id="someid" class="main link" href="/" title="Main Page">Click Link</a> It is also possible to define these attributes within the block of a tag a #someid [href="/"] [title="Main Page"] .main .link | Click Link Doctypes To add a doctype, use `!!!` or `doctype` keywords: !!! transitional // <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> or use `doctype` doctype 5 // <!DOCTYPE html> Available options: `5`, `default`, `xml`, `transitional`, `strict`, `frameset`, `1.1`, `basic`, `mobile` Tag Content For single line tag text, you can just append the text after tag name: p Testing! would yield <p>Testing!</p> For multi line tag text, or nested tags, use indentation: html head title Page Title body div#content p | This is a long page content | These lines are all part of the parent p a[href="/"] Go To Main Page Data Input template data can be reached by key names directly.