...
Tawesoft Logo

Source file src/tawesoft.co.uk/go/dialog/doc.go

Documentation: src/tawesoft.co.uk/go/dialog/doc.go

     1  // tawesoft.co.uk/go/dialog
     2  // 
     3  // Copyright © 2019 - 2020 Ben Golightly <ben@tawesoft.co.uk>
     4  // Copyright © 2019 - 2020 Tawesoft Ltd <opensource@tawesoft.co.uk>
     5  // 
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction,  including without limitation the rights
     9  // to use,  copy, modify,  merge,  publish, distribute, sublicense,  and/or sell
    10  // copies  of  the  Software,  and  to  permit persons  to whom  the Software is
    11  // furnished to do so.
    12  // 
    13  // THE SOFTWARE IS PROVIDED  "AS IS",  WITHOUT WARRANTY OF ANY KIND,  EXPRESS OR
    14  // IMPLIED,  INCLUDING  BUT  NOT LIMITED TO THE WARRANTIES  OF  MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE  AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    16  // AUTHORS  OR COPYRIGHT HOLDERS  BE LIABLE  FOR ANY  CLAIM,  DAMAGES  OR  OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    19  // SOFTWARE.
    20  
    21  // Package dialog implements simple cross platform native MessageBox/Alert
    22  // dialogs for Go.
    23  // 
    24  // Currently, only supports Windows and Linux targets.
    25  // 
    26  // On Linux, uses (in order of preference) `zenity`, `xmessage`, or stdio.
    27  // 
    28  // Example
    29  // 
    30  // Usage is quite simple:
    31  // 
    32  //     package main
    33  // 
    34  //     import "tawesoft.co.uk/go/dialog"
    35  // 
    36  //     func main() {
    37  //         dialog.Alert("Hello world!")
    38  //         dialog.Alert("There are %d lights", 4)
    39  //     }
    40  //
    41  // Package Information
    42  //
    43  // License: MIT-0 (see LICENSE.txt)
    44  //
    45  // Stable: yes
    46  //
    47  // For more information, documentation, source code, examples, support, links,
    48  // etc. please see https://www.tawesoft.co.uk/go and 
    49  // https://www.tawesoft.co.uk/go/dialog
    50  //
    51  //     2019-11-16
    52  //     
    53  //         * Fix incorrect formatting of multiple arguments in Linux stdio fallback
    54  //     
    55  //     2019-10-16
    56  //     
    57  //         * Remove title argument from Alert function
    58  //     
    59  //     2019-10-01
    60  //     
    61  //         * Fix string formatting bug in Windows build
    62  //     
    63  //     2019-10-01
    64  //     
    65  //         * Support Unicode in UTF16 Windows dialogs
    66  //         * Use "golang.org/x/sys/windows" to provide WinAPI
    67  //         * Removes CGO and windows.h implementation
    68  //         * Linux stdio fallback alert no longer blocks waiting for input
    69  //     
    70  //     2019-09-30
    71  //     
    72  //         * First release
    73  //     
    74  package dialog // import "tawesoft.co.uk/go/dialog"
    75  
    76  // Code generated by internal. DO NOT EDIT.
    77  // Instead, edit DESC.txt and run mkdocs.sh.

View as plain text