From 80c5ac891df3628eed63b48ddded9fa23d2f3711 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Aug 2022 08:38:04 +0530 Subject: [PATCH] Add license info to Go files --- tools/cli/infrastructure.go | 2 ++ tools/cli/infrastructure_test.go | 2 ++ tools/cmd/at/main.go | 2 ++ tools/cmd/at/main_test.go | 2 ++ tools/cmd/at/template.go | 2 ++ tools/cmd/main.go | 2 ++ tools/crypto/crypto.go | 2 ++ tools/tty/tty.go | 2 ++ tools/tty/tty_bsd.go | 1 + tools/tty/tty_linux.go | 2 ++ tools/tui/key-encoding.go | 2 ++ tools/tui/loop.go | 2 ++ tools/tui/password.go | 2 ++ tools/tui/select.go | 2 ++ tools/tui/signal.go | 2 ++ tools/tui/terminal-state.go | 2 ++ tools/utils/io.go | 2 ++ tools/utils/paths.go | 2 ++ tools/utils/select_posix.go | 2 ++ tools/utils/select_without_pselect.go | 1 + tools/utils/sockets.go | 2 ++ tools/utils/sockets_test.go | 2 ++ tools/utils/types.go | 2 ++ tools/utils/utf-8.go | 2 ++ tools/wcswidth/escape-code-parser.go | 2 ++ tools/wcswidth/escape-code-parser_test.go | 2 ++ tools/wcswidth/wcswidth.go | 2 ++ tools/wcswidth/wcswidth_test.go | 2 ++ 28 files changed, 54 insertions(+) diff --git a/tools/cli/infrastructure.go b/tools/cli/infrastructure.go index 532d70d16..e154a6600 100644 --- a/tools/cli/infrastructure.go +++ b/tools/cli/infrastructure.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package cli import ( diff --git a/tools/cli/infrastructure_test.go b/tools/cli/infrastructure_test.go index ec1340f43..7fe78ae22 100644 --- a/tools/cli/infrastructure_test.go +++ b/tools/cli/infrastructure_test.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package cli import ( diff --git a/tools/cmd/at/main.go b/tools/cmd/at/main.go index d6932fed2..5f2e51a2f 100644 --- a/tools/cmd/at/main.go +++ b/tools/cmd/at/main.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package at import ( diff --git a/tools/cmd/at/main_test.go b/tools/cmd/at/main_test.go index 4de4d87a3..755ff7b44 100644 --- a/tools/cmd/at/main_test.go +++ b/tools/cmd/at/main_test.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package at import ( diff --git a/tools/cmd/at/template.go b/tools/cmd/at/template.go index 4be47275b..5b63775ec 100644 --- a/tools/cmd/at/template.go +++ b/tools/cmd/at/template.go @@ -1,5 +1,7 @@ //go:build exclude +// License: GPLv3 Copyright: 2022, Kovid Goyal, + // this file is autogenerated by __FILE__ do not edit package at diff --git a/tools/cmd/main.go b/tools/cmd/main.go index 6c82b730c..57b89e4c8 100644 --- a/tools/cmd/main.go +++ b/tools/cmd/main.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package main import ( diff --git a/tools/crypto/crypto.go b/tools/crypto/crypto.go index b44f8bf13..c08d66080 100644 --- a/tools/crypto/crypto.go +++ b/tools/crypto/crypto.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package crypto import ( diff --git a/tools/tty/tty.go b/tools/tty/tty.go index 065df260f..ab0520c78 100644 --- a/tools/tty/tty.go +++ b/tools/tty/tty.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tty import ( diff --git a/tools/tty/tty_bsd.go b/tools/tty/tty_bsd.go index 7f9d7fb83..ed9b335ad 100644 --- a/tools/tty/tty_bsd.go +++ b/tools/tty/tty_bsd.go @@ -1,3 +1,4 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, //go:build darwin || freebsd || openbsd || netbsd || dragonfly // +build darwin freebsd openbsd netbsd dragonfly diff --git a/tools/tty/tty_linux.go b/tools/tty/tty_linux.go index f30fa30b4..4f92342cc 100644 --- a/tools/tty/tty_linux.go +++ b/tools/tty/tty_linux.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tty import "golang.org/x/sys/unix" diff --git a/tools/tui/key-encoding.go b/tools/tui/key-encoding.go index 0f68f9621..246ea7387 100644 --- a/tools/tui/key-encoding.go +++ b/tools/tui/key-encoding.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/tui/loop.go b/tools/tui/loop.go index 207d1d791..0c761bdff 100644 --- a/tools/tui/loop.go +++ b/tools/tui/loop.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/tui/password.go b/tools/tui/password.go index 5c7ad9bb9..7c30696cd 100644 --- a/tools/tui/password.go +++ b/tools/tui/password.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/tui/select.go b/tools/tui/select.go index 8eb665ef6..2ed23cec3 100644 --- a/tools/tui/select.go +++ b/tools/tui/select.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/tui/signal.go b/tools/tui/signal.go index 9d7d40322..b844b593b 100644 --- a/tools/tui/signal.go +++ b/tools/tui/signal.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/tui/terminal-state.go b/tools/tui/terminal-state.go index 732151f95..03a842264 100644 --- a/tools/tui/terminal-state.go +++ b/tools/tui/terminal-state.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package tui import ( diff --git a/tools/utils/io.go b/tools/utils/io.go index 02454fabf..e9f922d65 100644 --- a/tools/utils/io.go +++ b/tools/utils/io.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils import ( diff --git a/tools/utils/paths.go b/tools/utils/paths.go index 240756ddd..0e9746ea8 100644 --- a/tools/utils/paths.go +++ b/tools/utils/paths.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils import ( diff --git a/tools/utils/select_posix.go b/tools/utils/select_posix.go index 7c31fef71..03c953a4f 100644 --- a/tools/utils/select_posix.go +++ b/tools/utils/select_posix.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + //go:build !darwin package utils diff --git a/tools/utils/select_without_pselect.go b/tools/utils/select_without_pselect.go index c03afecc8..22957ee0b 100644 --- a/tools/utils/select_without_pselect.go +++ b/tools/utils/select_without_pselect.go @@ -1,3 +1,4 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, //go:build darwin package utils diff --git a/tools/utils/sockets.go b/tools/utils/sockets.go index c27bce5fd..a89813b3b 100644 --- a/tools/utils/sockets.go +++ b/tools/utils/sockets.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils import ( diff --git a/tools/utils/sockets_test.go b/tools/utils/sockets_test.go index 071cde079..08bd35048 100644 --- a/tools/utils/sockets_test.go +++ b/tools/utils/sockets_test.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils import ( diff --git a/tools/utils/types.go b/tools/utils/types.go index 6427c67c4..904a00eaf 100644 --- a/tools/utils/types.go +++ b/tools/utils/types.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils type RemoteControlCmd struct { diff --git a/tools/utils/utf-8.go b/tools/utils/utf-8.go index 157a81f4c..39c3d1b29 100644 --- a/tools/utils/utf-8.go +++ b/tools/utils/utf-8.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package utils // UTF-8 decode taken from: https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ diff --git a/tools/wcswidth/escape-code-parser.go b/tools/wcswidth/escape-code-parser.go index bac4aa92a..cad9b02e8 100644 --- a/tools/wcswidth/escape-code-parser.go +++ b/tools/wcswidth/escape-code-parser.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package wcswidth import ( diff --git a/tools/wcswidth/escape-code-parser_test.go b/tools/wcswidth/escape-code-parser_test.go index 21b778a92..e2e858f85 100644 --- a/tools/wcswidth/escape-code-parser_test.go +++ b/tools/wcswidth/escape-code-parser_test.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package wcswidth import ( diff --git a/tools/wcswidth/wcswidth.go b/tools/wcswidth/wcswidth.go index dee72297c..5d59ed3b2 100644 --- a/tools/wcswidth/wcswidth.go +++ b/tools/wcswidth/wcswidth.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package wcswidth func IsFlagCodepoint(ch rune) bool { diff --git a/tools/wcswidth/wcswidth_test.go b/tools/wcswidth/wcswidth_test.go index eccb488e5..04143e147 100644 --- a/tools/wcswidth/wcswidth_test.go +++ b/tools/wcswidth/wcswidth_test.go @@ -1,3 +1,5 @@ +// License: GPLv3 Copyright: 2022, Kovid Goyal, + package wcswidth import (