Bladeren bron

添加版权声明到多个文件

在多个源代码和脚本文件的开头添加了版权声明,声明这些代码受MIT风格许可协议保护。
SongZihuan 1 week geleden
bovenliggende
commit
cfdfe7371c

+ 4 - 0
SERVICE.yaml

@@ -1,3 +1,7 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 name: TestService
 display-name: Test Service
 describe: 一个简单的Go测试服务

+ 4 - 0
get_date.ps1

@@ -1,2 +1,6 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 $timestamp = [math]::Floor([decimal]((Get-Date).ToUniversalTime() | Get-Date -UFormat %s))
 Set-Content -Path "build_date.txt" -Value $timestamp

+ 4 - 0
get_date.sh

@@ -1 +1,5 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 date '+%s' > build_date.txt

+ 4 - 0
get_git.ps1

@@ -1,3 +1,7 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 if (Test-Path -Path ".\.git" -PathType Container) {
     $last_commit = git rev-parse HEAD 2>$null
     $last_tag = git describe --tags --abbrev=0 2>$null

+ 4 - 0
get_git.sh

@@ -1,3 +1,7 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 if [ -d "./.git" ]; then
     last_commit="$(git rev-parse HEAD 2>/dev/null)"
     last_tag="$(git describe --tags --abbrev=0 2>/dev/null)"

+ 4 - 0
get_random.ps1

@@ -1,3 +1,7 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 $characters = 'abcdefghijklmnopqrstuvwxyz0123456789'
 $length = 40
 

+ 4 - 0
get_random.sh

@@ -1,3 +1,7 @@
+# Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+# Use of this source code is governed by a MIT-style
+# license that can be found in the LICENSE file.
+
 length=40
 randomString=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w $length | head -n 1)
 echo "$randomString" > random_data.txt

+ 4 - 0
src/commandlineargs/export.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package commandlineargs
 
 import (

+ 4 - 0
src/commandlineargs/internal_data_type_method.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package commandlineargs
 
 import (

+ 4 - 0
src/config/base_data.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/config.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/configerror/error.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package configerror
 
 type configError struct {

+ 4 - 0
src/config/define_data_example.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/global_config.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/server_config.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/signal_config.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/config/win32_consolel_config.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package config
 
 import (

+ 4 - 0
src/logger/internal/logger.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package internal
 
 import (

+ 4 - 0
src/logger/logger_export.go

@@ -1,3 +1,7 @@
+// Copyright 2025 BackendServerTemplate Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
 package logger
 
 import (