diff --git a/cmd/server/main.go b/cmd/server/main.go index e2777ba..26dd736 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Command nuntius runs the contact form backend server. diff --git a/examples/minimal/main.go b/examples/minimal/main.go index 7b1dd7b..dc290d0 100644 --- a/examples/minimal/main.go +++ b/examples/minimal/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Minimal example showing how to use the contactform package diff --git a/install.py b/install.py index 6e77647..9bdb7e3 100644 --- a/install.py +++ b/install.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +# SPDX-License-Identifier: MIT # # install.py — install nuntius as a systemd service. # diff --git a/internal/config/config.go b/internal/config/config.go index 22be5e0..6855c00 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Package config loads nuntius configuration from a TOML file. diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 9c312a7..3923982 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd package config diff --git a/internal/email/sender.go b/internal/email/sender.go index 8bd98ce..c35a424 100644 --- a/internal/email/sender.go +++ b/internal/email/sender.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Package email handles SMTP message composition and delivery. diff --git a/internal/handler/contact.go b/internal/handler/contact.go index f8d42d8..ce20061 100644 --- a/internal/handler/contact.go +++ b/internal/handler/contact.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd package handler diff --git a/internal/storage/newsletter.go b/internal/storage/newsletter.go index f4e21f0..61a9979 100644 --- a/internal/storage/newsletter.go +++ b/internal/storage/newsletter.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Package storage provides file-based persistence for nuntius. diff --git a/internal/storage/newsletter_test.go b/internal/storage/newsletter_test.go index 8979598..f55bcf8 100644 --- a/internal/storage/newsletter_test.go +++ b/internal/storage/newsletter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd package storage diff --git a/internal/version/version.go b/internal/version/version.go index 676785a..47a32c7 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Package version exposes the nuntius release identity. diff --git a/justfile b/justfile index 543e468..89afa0a 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,6 @@ +# Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +# SPDX-License-Identifier: MIT + set dotenv-load := false set positional-arguments := false diff --git a/pkg/contactform/types.go b/pkg/contactform/types.go index a8937ae..3149460 100644 --- a/pkg/contactform/types.go +++ b/pkg/contactform/types.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd // Package contactform provides reusable types and validation diff --git a/pkg/contactform/validate.go b/pkg/contactform/validate.go index 79a3fb5..fe1dda6 100644 --- a/pkg/contactform/validate.go +++ b/pkg/contactform/validate.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd package contactform diff --git a/pkg/contactform/validate_test.go b/pkg/contactform/validate_test.go index 3c01a62..e1ef6d6 100644 --- a/pkg/contactform/validate_test.go +++ b/pkg/contactform/validate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2026 Petr Balvín (https://petrbalvin.org) +// SPDX-License-Identifier: MIT + //go:build linux || freebsd package contactform