Skip to content

Commit d61fe1e

Browse files
committed
refactor: add copyright license headers to source code files
1 parent 12c5760 commit d61fe1e

33 files changed

Lines changed: 374 additions & 8 deletions

.github/workflows/go.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
#
3+
# This source code is licensed under the license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
#
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
112
# This workflow will build a golang project
213
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
314

@@ -23,15 +34,18 @@ jobs:
2334

2435
- name: Install dependencies
2536
run: |
26-
go get github.com/BurntSushi/toml@v1.2.1
37+
go get github.com/BurntSushi/toml@v1.5.0
38+
go get github.com/alicebob/miniredis/v2@v2.34.0
2739
go get github.com/bwmarrin/snowflake@v0.3.0
28-
go get github.com/dromara/carbon/v2@v2.2.3
29-
go get github.com/nicksnyder/go-i18n/v2@v2.2.1
30-
go get github.com/stretchr/testify@v1.8.1
31-
go get golang.org/x/exp
32-
go get golang.org/x/text@v0.7.0
33-
go get google.golang.org/grpc@v1.53.0
34-
go get gopkg.in/guregu/null.v4@v4.0.0
40+
go get github.com/dromara/carbon/v2@v2.5.2
41+
go get github.com/guregu/null/v5@v5.0.0
42+
go get github.com/nicksnyder/go-i18n/v2@v2.5.1
43+
go get github.com/patrickmn/go-cache@v2.1.0+incompatible
44+
go get github.com/pkg/errors@v0.9.1
45+
go get github.com/redis/go-redis/v9@v9.7.3
46+
go get github.com/stretchr/testify@v1.10.0
47+
go get golang.org/x/sync@v0.11.0
48+
go get golang.org/x/text@v0.22.0
3549
3650
- name: Build
3751
run: go build -v ./...

chrono/chrono.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package chrono
213

314
import (

chrono/chrono_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package chrono
213

314
import (

condexpr/condexpr.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package condexpr
213

314
// Any 若expr成立,则返回a;否则返回b。

condexpr/condexpr_generic_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package condexpr
213

314
import (

container/set.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package container
213

314
var setValue = struct{}{}

container/set_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package container
213

314
import (

container/slice.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package container
213

314
// InSlice 返回目标元素是否在切片中的布尔值

container/slice_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package container
213

314
import (

db/db_page.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright (c) 2025 voidint <voidint@126.com>. All rights reserved.
2+
//
3+
// This source code is licensed under the license found in the
4+
// LICENSE file in the root directory of this source tree.
5+
//
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
112
package db
213

314
import (

0 commit comments

Comments
 (0)