Skip to content

Commit

Permalink
Update copyright year 2024 -> 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Jan 5, 2025
1 parent d5f0167 commit 096500d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
28 changes: 14 additions & 14 deletions dot/dot.go
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion example_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// 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

package heredoc_test

import (
"fmt"

"github.com/MakeNowJust/heredoc/v2"
)

Expand Down
22 changes: 11 additions & 11 deletions heredoc.go
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
// 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

// Package heredoc provides creation of here-documents from raw strings.
//
// 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 (
Expand Down
2 changes: 1 addition & 1 deletion heredoc_test.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 096500d

Please sign in to comment.