From 096500dcd94b7b79e08cc414a3a1e50ccabbf424 Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Sun, 5 Jan 2025 23:16:04 +0900 Subject: [PATCH] Update copyright year 2024 -> 2025 --- LICENSE | 2 +- dot/dot.go | 28 ++++++++++++++-------------- example_test.go | 3 ++- heredoc.go | 22 +++++++++++----------- heredoc_test.go | 2 +- 5 files changed, 29 insertions(+), 28 deletions(-) diff --git a/LICENSE b/LICENSE index 9b49df4..bdd649a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2024 TSUYUSATO Kitsune +Copyright (c) 2014-2025 TSUYUSATO Kitsune Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dot/dot.go b/dot/dot.go index d1ce927..c281e24 100644 --- a/dot/dot.go +++ b/dot/dot.go @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024 TSUYUSATO Kitsune +// Copyright (c) 2014-2025 TSUYUSATO Kitsune // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php @@ -10,21 +10,21 @@ // // For example: // -// package main +// package main // -// import ( -// "fmt" -// "runtime" -// . "github.com/MakeNowJust/heredoc/v2/dot" -// ) +// import ( +// "fmt" +// "runtime" +// . "github.com/MakeNowJust/heredoc/v2/dot" +// ) // -// func main() { -// fmt.Printf(D(` -// GOROOT: %s -// GOARCH: %s -// GOOS : %s -// `), runtime.GOROOT(), runtime.GOARCH, runtime.GOOS) -// } +// func main() { +// fmt.Printf(D(` +// GOROOT: %s +// GOARCH: %s +// GOOS : %s +// `), runtime.GOROOT(), runtime.GOARCH, runtime.GOOS) +// } package heredoc_dot import "github.com/MakeNowJust/heredoc/v2" diff --git a/example_test.go b/example_test.go index b3673c6..e565dc8 100644 --- a/example_test.go +++ b/example_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024 TSUYUSATO Kitsune +// Copyright (c) 2014-2025 TSUYUSATO Kitsune // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php @@ -6,6 +6,7 @@ package heredoc_test import ( "fmt" + "github.com/MakeNowJust/heredoc/v2" ) diff --git a/heredoc.go b/heredoc.go index 33b3097..608cd80 100644 --- a/heredoc.go +++ b/heredoc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024 TSUYUSATO Kitsune +// Copyright (c) 2014-2025 TSUYUSATO Kitsune // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php @@ -6,27 +6,27 @@ // // Golang supports raw-string syntax. // -// doc := ` -// Foo -// Bar -// ` +// doc := ` +// Foo +// Bar +// ` // // But raw-string cannot recognize indentation. Thus such content is an indented string, equivalent to // -// "\n\tFoo\n\tBar\n" +// "\n\tFoo\n\tBar\n" // // I don't want this! // // However this problem is solved by package heredoc. // -// doc := heredoc.Doc(` -// Foo -// Bar -// `) +// doc := heredoc.Doc(` +// Foo +// Bar +// `) // // Is equivalent to // -// "Foo\nBar\n" +// "Foo\nBar\n" package heredoc import ( diff --git a/heredoc_test.go b/heredoc_test.go index 415e8e0..f092319 100644 --- a/heredoc_test.go +++ b/heredoc_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024 TSUYUSATO Kitsune +// Copyright (c) 2014-2025 TSUYUSATO Kitsune // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php