1 // tawoesoft.co.uk/go/operator 2 // 3 // Copyright © 2020 Tawesoft Ltd <open-source@tawesoft.co.uk> 4 // Copyright © 2020 Ben Golightly <ben@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 operator implements logical, arithmetic, bitwise and comparison 22 // operators as functions (like the Python operator module). Includes unary, 23 // binary, and n-ary functions with overflow checked variants. 24 // 25 // Examples 26 // 27 // Using operators as function arguments 28 // 29 // https://www.tawesoft.co.uk/go/doc/operator/examples/simple/ 30 // 31 // Using operators in lookup tables for a command-line calculator program 32 // 33 // https://www.tawesoft.co.uk/go/doc/operator/examples/calculator/ 34 // 35 // 36 // Package Information 37 // 38 // License: MIT-0 (see LICENSE.txt) 39 // 40 // Stable: yes 41 // 42 // For more information, documentation, source code, examples, support, links, 43 // etc. please see https://www.tawesoft.co.uk/go and 44 // https://www.tawesoft.co.uk/go/operator 45 package operator // import "tawesoft.co.uk/go/operator" 46 47 // Code generated by internal. DO NOT EDIT. 48 // Instead, edit DESC.txt and run mkdocs.sh.