mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-02 11:48:15 +00:00
Use `golangci-lint fmt` to format code, replacing the previous custom formatter tool. https://github.com/daixiang0/gci is used to order the imports. `make fmt` performs ~13% faster while consuming ~57% less cpu while formatting for me. `GOFUMPT_PACKAGE` is gone because it's using the builtin package from golangci-lint. Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
24 lines
461 B
Go
24 lines
461 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build bindata
|
|
|
|
//go:generate go run ../../build/generate-bindata.go ../../options bindata.dat
|
|
|
|
package options
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"code.gitea.io/gitea/modules/assetfs"
|
|
|
|
_ "embed"
|
|
)
|
|
|
|
//go:embed bindata.dat
|
|
var bindata []byte
|
|
|
|
var BuiltinAssets = sync.OnceValue(func() *assetfs.Layer {
|
|
return assetfs.Bindata("builtin(bindata)", assetfs.NewEmbeddedFS(bindata))
|
|
})
|