added LICENSE.md

This commit is contained in:
Timon Ringwald 2022-07-25 01:50:52 +02:00
parent 50d1ac83b6
commit 5bf2f81d98
3 changed files with 49 additions and 2 deletions

29
.gitignore vendored
View File

@ -1 +1,30 @@
format format
format_freebsd_386
format_linux_amd64
format_linux_arm
format_openbsd_amd64
format_linux_mips64
format_freebsd_arm
format_netbsd_arm64
format_windows_arm64
format_netbsd_386
format_freebsd_arm64
format_linux_386
format_openbsd_386
format_openbsd_mips64
format_netbsd_arm
format_linux_ppc64le
format_windows_386
format_linux_arm64
format_netbsd_amd64
format_windows_arm
format_linux_mips64le
format_openbsd_arm
format_windows_amd64
format_linux_riscv64
format_linux_ppc64
format_linux_mipsle
format_linux_mips
format_openbsd_arm64
format_freebsd_amd64
format_linux_s390x

19
LICENSE.md Normal file
View File

@ -0,0 +1,19 @@
Copyright (c) 2022 Mila Ringwald
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -45,8 +45,7 @@ var (
// it may be useful to have a boolean flag for this behavior // it may be useful to have a boolean flag for this behavior
lineParseAmount = flag.Int("n", 1, "amount of lines to feed into input pattern") lineParseAmount = flag.Int("n", 1, "amount of lines to feed into input pattern")
replacePattern = regexp.MustCompile(`\{(\d+)(?::(.*?))?(?::(.*?))?(?::(.*?))?\}`) replacePattern = regexp.MustCompile(`\{(\d+)(?::(.*?))?(?::(.*?))?(?::(.*?))?\}`)
numMutationPattern = regexp.MustCompile(`([+\-*/])(\d+|\((\d+)\))`) numMutationPattern = regexp.MustCompile(`([+\-*/])(\d+|\((\d+)\))`)
) )