forked from cloudwego/hertz
chore: change license header style to avoid format error of buildtag from CI check (#310)
This commit is contained in:
parent
2530c14329
commit
c0d67a98d5
|
@ -19,15 +19,13 @@ jobs:
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
go vet -stdmethods=false $(go list ./...)
|
go vet -stdmethods=false $(go list ./...)
|
||||||
go install mvdan.cc/gofumpt@v0.2.0
|
go install mvdan.cc/gofumpt@v0.2.0
|
||||||
test -z "$(gofumpt -l -extra .)"
|
test -z "$(gofumpt -l -extra .)"
|
||||||
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: go test -race -covermode=atomic -coverprofile=coverage.txt ./...
|
run: go test -race -covermode=atomic -coverprofile=coverage.txt ./...
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
run: bash <(curl -s https://codecov.io/bash)
|
run: bash <(curl -s https://codecov.io/bash)
|
|
@ -1,18 +1,18 @@
|
||||||
/*
|
//
|
||||||
* Copyright 2022 CloudWeGo Authors
|
// Copyright 2022 CloudWeGo Authors
|
||||||
*
|
//
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
*
|
//
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
//
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
// limitations under the License.
|
||||||
*/
|
//
|
||||||
|
|
||||||
//go:build (linux || windows || darwin) && amd64
|
//go:build (linux || windows || darwin) && amd64
|
||||||
// +build linux windows darwin
|
// +build linux windows darwin
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
/*
|
//
|
||||||
* Copyright 2022 CloudWeGo Authors
|
// Copyright 2022 CloudWeGo Authors
|
||||||
*
|
//
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
*
|
//
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
//
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
// limitations under the License.
|
||||||
*/
|
//
|
||||||
|
|
||||||
//go:build stdjson || !(amd64 && (linux || windows || darwin))
|
//go:build stdjson || !(amd64 && (linux || windows || darwin))
|
||||||
// +build stdjson !amd64 !linux,!windows,!darwin
|
// +build stdjson !amd64 !linux,!windows,!darwin
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
|
//
|
||||||
|
// Copyright 2022 CloudWeGo Authors
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright 2022 CloudWeGo Authors
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package netpoll
|
package netpoll
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
|
//
|
||||||
|
// Copyright 2022 CloudWeGo Authors
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
|
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright 2022 CloudWeGo Authors
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package route
|
package route
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue