From 72ad0e2440192837e0d7ef16e94b1bbf8a4b8741 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 7 Jan 2026 13:05:56 -0800 Subject: [PATCH] goimports -w . --- telemetry/proto/telemetry.pb.go | 5 +++-- .../internal/schema/pb/loadtest.pb.go | 5 +++-- weed/admin/view/app/admin_templ.go | 6 +++--- weed/admin/view/app/cluster_brokers_templ.go | 6 +++--- weed/admin/view/app/cluster_collections_templ.go | 6 +++--- weed/admin/view/app/cluster_ec_shards_templ.go | 6 +++--- weed/admin/view/app/cluster_ec_volumes_templ.go | 10 +++++----- weed/admin/view/app/cluster_filers_templ.go | 6 +++--- weed/admin/view/app/cluster_masters_templ.go | 6 +++--- weed/admin/view/app/cluster_volume_servers_templ.go | 6 +++--- weed/admin/view/app/cluster_volumes_templ.go | 8 ++++---- weed/admin/view/app/collection_details_templ.go | 6 +++--- weed/admin/view/app/ec_volume_details_templ.go | 6 +++--- weed/admin/view/app/file_browser_templ.go | 8 ++++---- .../view/app/maintenance_config_schema_templ.go | 6 +++--- weed/admin/view/app/maintenance_config_templ.go | 6 +++--- weed/admin/view/app/maintenance_queue_templ.go | 8 ++++---- weed/admin/view/app/maintenance_workers_templ.go | 8 ++++---- weed/admin/view/app/object_store_users_templ.go | 6 +++--- weed/admin/view/app/policies_templ.go | 6 +++--- weed/admin/view/app/s3_buckets_templ.go | 6 +++--- weed/admin/view/app/service_accounts_templ.go | 6 +++--- weed/admin/view/app/subscribers_templ.go | 10 ++++------ weed/admin/view/app/task_config_schema_templ.go | 10 +++++----- weed/admin/view/app/task_config_templ.go | 5 +++-- weed/admin/view/app/task_config_templ_templ.go | 5 +++-- weed/admin/view/app/task_detail_templ.go | 8 ++++---- weed/admin/view/app/topic_details_templ.go | 12 +++++------- weed/admin/view/app/topics_templ.go | 12 +++++------- weed/admin/view/app/volume_details_templ.go | 8 ++++---- weed/admin/view/components/config_sections_templ.go | 6 ++---- weed/admin/view/components/form_fields_templ.go | 8 +++----- weed/admin/view/layout/layout_templ.go | 10 +++++----- weed/pb/filer_pb/filer.pb.go | 5 +++-- weed/pb/filer_pb/filer_client_bfs.go | 3 ++- weed/pb/filer_pb/filer_grpc.pb.go | 1 + weed/pb/filer_pb_tail.go | 5 +++-- weed/pb/iam_pb/iam.pb.go | 5 +++-- weed/pb/master_pb/master.pb.go | 5 +++-- weed/pb/master_pb/master_grpc.pb.go | 1 + weed/pb/mount_pb/mount.pb.go | 5 +++-- weed/pb/mount_pb/mount_grpc.pb.go | 1 + weed/pb/mq_agent_pb/mq_agent.pb.go | 7 ++++--- weed/pb/mq_agent_pb/mq_agent_grpc.pb.go | 1 + weed/pb/mq_agent_pb/publish_response_test.go | 3 ++- weed/pb/mq_pb/mq_broker.pb.go | 7 ++++--- weed/pb/mq_pb/mq_broker_grpc.pb.go | 1 + weed/pb/remote_pb/remote.pb.go | 5 +++-- weed/pb/s3_pb/s3.pb.go | 5 +++-- weed/pb/s3_pb/s3_grpc.pb.go | 1 + weed/pb/schema_pb/mq_schema.pb.go | 5 +++-- weed/pb/schema_pb/offset_test.go | 3 ++- weed/pb/server_discovery.go | 3 ++- weed/pb/volume_server_pb/volume_server.pb.go | 7 ++++--- weed/pb/volume_server_pb/volume_server_grpc.pb.go | 1 + weed/pb/worker_pb/worker.pb.go | 5 +++-- weed/pb/worker_pb/worker_grpc.pb.go | 1 + weed/util/skiplist/skiplist.pb.go | 5 +++-- 58 files changed, 173 insertions(+), 154 deletions(-) diff --git a/telemetry/proto/telemetry.pb.go b/telemetry/proto/telemetry.pb.go index a400b8c37..8aa6ab626 100644 --- a/telemetry/proto/telemetry.pb.go +++ b/telemetry/proto/telemetry.pb.go @@ -7,10 +7,11 @@ package proto import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/test/kafka/kafka-client-loadtest/internal/schema/pb/loadtest.pb.go b/test/kafka/kafka-client-loadtest/internal/schema/pb/loadtest.pb.go index 3ed58aa9e..f70414f7b 100644 --- a/test/kafka/kafka-client-loadtest/internal/schema/pb/loadtest.pb.go +++ b/test/kafka/kafka-client-loadtest/internal/schema/pb/loadtest.pb.go @@ -7,11 +7,12 @@ package pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/admin/view/app/admin_templ.go b/weed/admin/view/app/admin_templ.go index b3f255d66..cbff92c5d 100644 --- a/weed/admin/view/app/admin_templ.go +++ b/weed/admin/view/app/admin_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_brokers_templ.go b/weed/admin/view/app/cluster_brokers_templ.go index 912f2a56d..18b5b0c34 100644 --- a/weed/admin/view/app/cluster_brokers_templ.go +++ b/weed/admin/view/app/cluster_brokers_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_collections_templ.go b/weed/admin/view/app/cluster_collections_templ.go index bf5121d39..1e0234cbd 100644 --- a/weed/admin/view/app/cluster_collections_templ.go +++ b/weed/admin/view/app/cluster_collections_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_ec_shards_templ.go b/weed/admin/view/app/cluster_ec_shards_templ.go index c7247146c..b7c169d1e 100644 --- a/weed/admin/view/app/cluster_ec_shards_templ.go +++ b/weed/admin/view/app/cluster_ec_shards_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_ec_volumes_templ.go b/weed/admin/view/app/cluster_ec_volumes_templ.go index 758d313e1..9103607a8 100644 --- a/weed/admin/view/app/cluster_ec_volumes_templ.go +++ b/weed/admin/view/app/cluster_ec_volumes_templ.go @@ -5,15 +5,15 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "sort" - "strings" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" + "sort" + "strings" ) func ClusterEcVolumes(data dash.ClusterEcVolumesData) templ.Component { diff --git a/weed/admin/view/app/cluster_filers_templ.go b/weed/admin/view/app/cluster_filers_templ.go index 0eb26336e..c61c218fc 100644 --- a/weed/admin/view/app/cluster_filers_templ.go +++ b/weed/admin/view/app/cluster_filers_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_masters_templ.go b/weed/admin/view/app/cluster_masters_templ.go index 58a86e770..b10881bc0 100644 --- a/weed/admin/view/app/cluster_masters_templ.go +++ b/weed/admin/view/app/cluster_masters_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_volume_servers_templ.go b/weed/admin/view/app/cluster_volume_servers_templ.go index b7a4319d0..3a47df7d9 100644 --- a/weed/admin/view/app/cluster_volume_servers_templ.go +++ b/weed/admin/view/app/cluster_volume_servers_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/cluster_volumes_templ.go b/weed/admin/view/app/cluster_volumes_templ.go index de1d03b29..117ae8585 100644 --- a/weed/admin/view/app/cluster_volumes_templ.go +++ b/weed/admin/view/app/cluster_volumes_templ.go @@ -5,13 +5,13 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "strings" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" + "strings" ) func ClusterVolumes(data dash.ClusterVolumesData) templ.Component { diff --git a/weed/admin/view/app/collection_details_templ.go b/weed/admin/view/app/collection_details_templ.go index 21d87643b..f2ff0ab13 100644 --- a/weed/admin/view/app/collection_details_templ.go +++ b/weed/admin/view/app/collection_details_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" "github.com/seaweedfs/seaweedfs/weed/util" ) diff --git a/weed/admin/view/app/ec_volume_details_templ.go b/weed/admin/view/app/ec_volume_details_templ.go index d3b674740..1092f1b86 100644 --- a/weed/admin/view/app/ec_volume_details_templ.go +++ b/weed/admin/view/app/ec_volume_details_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/file_browser_templ.go b/weed/admin/view/app/file_browser_templ.go index 0a48c63e6..4a66ff026 100644 --- a/weed/admin/view/app/file_browser_templ.go +++ b/weed/admin/view/app/file_browser_templ.go @@ -5,14 +5,14 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" + "github.com/seaweedfs/seaweedfs/weed/admin/dash" "path/filepath" "strings" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" - "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) func changePageSize(path string, lastFileName string) templ.ComponentScript { diff --git a/weed/admin/view/app/maintenance_config_schema_templ.go b/weed/admin/view/app/maintenance_config_schema_templ.go index 6cb3371d9..b7046f3f9 100644 --- a/weed/admin/view/app/maintenance_config_schema_templ.go +++ b/weed/admin/view/app/maintenance_config_schema_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/config" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" "github.com/seaweedfs/seaweedfs/weed/admin/view/components" diff --git a/weed/admin/view/app/maintenance_config_templ.go b/weed/admin/view/app/maintenance_config_templ.go index a692cafd9..45e9b8ef1 100644 --- a/weed/admin/view/app/maintenance_config_templ.go +++ b/weed/admin/view/app/maintenance_config_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" ) diff --git a/weed/admin/view/app/maintenance_queue_templ.go b/weed/admin/view/app/maintenance_queue_templ.go index de5cb1e44..bd2f845e5 100644 --- a/weed/admin/view/app/maintenance_queue_templ.go +++ b/weed/admin/view/app/maintenance_queue_templ.go @@ -5,13 +5,13 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "time" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" + "time" ) func MaintenanceQueue(data *maintenance.MaintenanceQueueData) templ.Component { diff --git a/weed/admin/view/app/maintenance_workers_templ.go b/weed/admin/view/app/maintenance_workers_templ.go index 945ab310b..f1fd13ebb 100644 --- a/weed/admin/view/app/maintenance_workers_templ.go +++ b/weed/admin/view/app/maintenance_workers_templ.go @@ -5,13 +5,13 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "time" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" + "time" ) func MaintenanceWorkers(data *dash.MaintenanceWorkersData) templ.Component { diff --git a/weed/admin/view/app/object_store_users_templ.go b/weed/admin/view/app/object_store_users_templ.go index cc0778f49..c60ae84fe 100644 --- a/weed/admin/view/app/object_store_users_templ.go +++ b/weed/admin/view/app/object_store_users_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/policies_templ.go b/weed/admin/view/app/policies_templ.go index a77a548ed..89aa83db5 100644 --- a/weed/admin/view/app/policies_templ.go +++ b/weed/admin/view/app/policies_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/s3_buckets_templ.go b/weed/admin/view/app/s3_buckets_templ.go index 076939f08..6b58b5580 100644 --- a/weed/admin/view/app/s3_buckets_templ.go +++ b/weed/admin/view/app/s3_buckets_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/service_accounts_templ.go b/weed/admin/view/app/service_accounts_templ.go index 8de72af6d..3ac8392b2 100644 --- a/weed/admin/view/app/service_accounts_templ.go +++ b/weed/admin/view/app/service_accounts_templ.go @@ -5,11 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) diff --git a/weed/admin/view/app/subscribers_templ.go b/weed/admin/view/app/subscribers_templ.go index 582cfe7a1..32b743da6 100644 --- a/weed/admin/view/app/subscribers_templ.go +++ b/weed/admin/view/app/subscribers_templ.go @@ -5,13 +5,11 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. -import ( - "fmt" +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" - "github.com/seaweedfs/seaweedfs/weed/admin/dash" -) +import "fmt" +import "github.com/seaweedfs/seaweedfs/weed/admin/dash" func Subscribers(data dash.SubscribersData) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { diff --git a/weed/admin/view/app/task_config_schema_templ.go b/weed/admin/view/app/task_config_schema_templ.go index fb66b4fb8..e28490b2a 100644 --- a/weed/admin/view/app/task_config_schema_templ.go +++ b/weed/admin/view/app/task_config_schema_templ.go @@ -5,20 +5,20 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "encoding/base64" "encoding/json" "fmt" - "reflect" - "strings" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/config" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" "github.com/seaweedfs/seaweedfs/weed/admin/view/components" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" "github.com/seaweedfs/seaweedfs/weed/worker/tasks" + "reflect" + "strings" ) // Helper function to convert task schema to JSON string diff --git a/weed/admin/view/app/task_config_templ.go b/weed/admin/view/app/task_config_templ.go index e1e717146..59a56d30b 100644 --- a/weed/admin/view/app/task_config_templ.go +++ b/weed/admin/view/app/task_config_templ.go @@ -5,9 +5,10 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" ) diff --git a/weed/admin/view/app/task_config_templ_templ.go b/weed/admin/view/app/task_config_templ_templ.go index 2614b3cd8..e037eb1cf 100644 --- a/weed/admin/view/app/task_config_templ_templ.go +++ b/weed/admin/view/app/task_config_templ_templ.go @@ -5,9 +5,10 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" "github.com/seaweedfs/seaweedfs/weed/admin/view/components" ) diff --git a/weed/admin/view/app/task_detail_templ.go b/weed/admin/view/app/task_detail_templ.go index d88865bb3..eec5ba29c 100644 --- a/weed/admin/view/app/task_detail_templ.go +++ b/weed/admin/view/app/task_detail_templ.go @@ -5,14 +5,14 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "sort" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" + "sort" ) // sortedKeys returns the sorted keys for a string map diff --git a/weed/admin/view/app/topic_details_templ.go b/weed/admin/view/app/topic_details_templ.go index 790f88b26..a3e48f581 100644 --- a/weed/admin/view/app/topic_details_templ.go +++ b/weed/admin/view/app/topic_details_templ.go @@ -5,14 +5,12 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. -import ( - "fmt" +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" - "github.com/seaweedfs/seaweedfs/weed/admin/dash" - "github.com/seaweedfs/seaweedfs/weed/util" -) +import "fmt" +import "github.com/seaweedfs/seaweedfs/weed/admin/dash" +import "github.com/seaweedfs/seaweedfs/weed/util" func TopicDetails(data dash.TopicDetailsData) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { diff --git a/weed/admin/view/app/topics_templ.go b/weed/admin/view/app/topics_templ.go index 45a44d82a..6920a2e53 100644 --- a/weed/admin/view/app/topics_templ.go +++ b/weed/admin/view/app/topics_templ.go @@ -5,14 +5,12 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. -import ( - "fmt" - "strings" +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" - "github.com/seaweedfs/seaweedfs/weed/admin/dash" -) +import "fmt" +import "strings" +import "github.com/seaweedfs/seaweedfs/weed/admin/dash" func Topics(data dash.TopicsData) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { diff --git a/weed/admin/view/app/volume_details_templ.go b/weed/admin/view/app/volume_details_templ.go index 8e1a47596..8091fad7b 100644 --- a/weed/admin/view/app/volume_details_templ.go +++ b/weed/admin/view/app/volume_details_templ.go @@ -5,13 +5,13 @@ package app //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "time" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/seaweedfs/seaweedfs/weed/admin/dash" + "time" ) func VolumeDetails(data dash.VolumeDetailsData) templ.Component { diff --git a/weed/admin/view/components/config_sections_templ.go b/weed/admin/view/components/config_sections_templ.go index 9c853164c..ca428dccd 100644 --- a/weed/admin/view/components/config_sections_templ.go +++ b/weed/admin/view/components/config_sections_templ.go @@ -5,10 +5,8 @@ package components //lint:file-ignore SA4006 This context is only used if a nested component is present. -import ( - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" -) +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" // ConfigSectionData represents data for a configuration section type ConfigSectionData struct { diff --git a/weed/admin/view/components/form_fields_templ.go b/weed/admin/view/components/form_fields_templ.go index 280a03f79..180147874 100644 --- a/weed/admin/view/components/form_fields_templ.go +++ b/weed/admin/view/components/form_fields_templ.go @@ -5,12 +5,10 @@ package components //lint:file-ignore SA4006 This context is only used if a nested component is present. -import ( - "fmt" +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" -) +import "fmt" // FormFieldData represents common form field data type FormFieldData struct { diff --git a/weed/admin/view/layout/layout_templ.go b/weed/admin/view/layout/layout_templ.go index ae63404a8..f718127f5 100644 --- a/weed/admin/view/layout/layout_templ.go +++ b/weed/admin/view/layout/layout_templ.go @@ -5,15 +5,15 @@ package layout //lint:file-ignore SA4006 This context is only used if a nested component is present. +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + import ( "fmt" - "strings" - "time" - - "github.com/a-h/templ" - templruntime "github.com/a-h/templ/runtime" "github.com/gin-gonic/gin" "github.com/seaweedfs/seaweedfs/weed/util/version" + "strings" + "time" ) func Layout(c *gin.Context, content templ.Component) templ.Component { diff --git a/weed/pb/filer_pb/filer.pb.go b/weed/pb/filer_pb/filer.pb.go index 7e2cdedf3..279bd6d5d 100644 --- a/weed/pb/filer_pb/filer.pb.go +++ b/weed/pb/filer_pb/filer.pb.go @@ -7,11 +7,12 @@ package filer_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/filer_pb/filer_client_bfs.go b/weed/pb/filer_pb/filer_client_bfs.go index eb2e9ccee..a3b4e98c9 100644 --- a/weed/pb/filer_pb/filer_client_bfs.go +++ b/weed/pb/filer_pb/filer_client_bfs.go @@ -3,11 +3,12 @@ package filer_pb import ( "context" "fmt" - "github.com/seaweedfs/seaweedfs/weed/glog" "io" "sync" "time" + "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util" ) diff --git a/weed/pb/filer_pb/filer_grpc.pb.go b/weed/pb/filer_pb/filer_grpc.pb.go index e74a4c712..b34996773 100644 --- a/weed/pb/filer_pb/filer_grpc.pb.go +++ b/weed/pb/filer_pb/filer_grpc.pb.go @@ -8,6 +8,7 @@ package filer_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/filer_pb_tail.go b/weed/pb/filer_pb_tail.go index d4e1e137e..d61f0abb8 100644 --- a/weed/pb/filer_pb_tail.go +++ b/weed/pb/filer_pb_tail.go @@ -3,12 +3,13 @@ package pb import ( "context" "fmt" + "io" + "time" + "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/util" "google.golang.org/grpc" - "io" - "time" ) type EventErrorType int diff --git a/weed/pb/iam_pb/iam.pb.go b/weed/pb/iam_pb/iam.pb.go index 4b0976410..367afc5ef 100644 --- a/weed/pb/iam_pb/iam.pb.go +++ b/weed/pb/iam_pb/iam.pb.go @@ -7,11 +7,12 @@ package iam_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/master_pb/master.pb.go b/weed/pb/master_pb/master.pb.go index fc2ceec4c..e8376011e 100644 --- a/weed/pb/master_pb/master.pb.go +++ b/weed/pb/master_pb/master.pb.go @@ -7,11 +7,12 @@ package master_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/master_pb/master_grpc.pb.go b/weed/pb/master_pb/master_grpc.pb.go index 441c2ffb1..719e8bb38 100644 --- a/weed/pb/master_pb/master_grpc.pb.go +++ b/weed/pb/master_pb/master_grpc.pb.go @@ -8,6 +8,7 @@ package master_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/mount_pb/mount.pb.go b/weed/pb/mount_pb/mount.pb.go index 1299f6bec..f5420f567 100644 --- a/weed/pb/mount_pb/mount.pb.go +++ b/weed/pb/mount_pb/mount.pb.go @@ -7,11 +7,12 @@ package mount_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/mount_pb/mount_grpc.pb.go b/weed/pb/mount_pb/mount_grpc.pb.go index 6a1281326..b4a9d7e29 100644 --- a/weed/pb/mount_pb/mount_grpc.pb.go +++ b/weed/pb/mount_pb/mount_grpc.pb.go @@ -8,6 +8,7 @@ package mount_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/mq_agent_pb/mq_agent.pb.go b/weed/pb/mq_agent_pb/mq_agent.pb.go index 155819280..3a89495cb 100644 --- a/weed/pb/mq_agent_pb/mq_agent.pb.go +++ b/weed/pb/mq_agent_pb/mq_agent.pb.go @@ -7,12 +7,13 @@ package mq_agent_pb import ( - schema_pb "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + schema_pb "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/mq_agent_pb/mq_agent_grpc.pb.go b/weed/pb/mq_agent_pb/mq_agent_grpc.pb.go index 62e323d13..7135ced0c 100644 --- a/weed/pb/mq_agent_pb/mq_agent_grpc.pb.go +++ b/weed/pb/mq_agent_pb/mq_agent_grpc.pb.go @@ -8,6 +8,7 @@ package mq_agent_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/mq_agent_pb/publish_response_test.go b/weed/pb/mq_agent_pb/publish_response_test.go index 0c7b0ee3a..0a6827fc9 100644 --- a/weed/pb/mq_agent_pb/publish_response_test.go +++ b/weed/pb/mq_agent_pb/publish_response_test.go @@ -1,8 +1,9 @@ package mq_agent_pb import ( - "google.golang.org/protobuf/proto" "testing" + + "google.golang.org/protobuf/proto" ) func TestPublishRecordResponseSerialization(t *testing.T) { diff --git a/weed/pb/mq_pb/mq_broker.pb.go b/weed/pb/mq_pb/mq_broker.pb.go index 88affa163..58672cb98 100644 --- a/weed/pb/mq_pb/mq_broker.pb.go +++ b/weed/pb/mq_pb/mq_broker.pb.go @@ -7,13 +7,14 @@ package mq_pb import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + filer_pb "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" schema_pb "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" ) const ( diff --git a/weed/pb/mq_pb/mq_broker_grpc.pb.go b/weed/pb/mq_pb/mq_broker_grpc.pb.go index 1abefb75b..ea972974e 100644 --- a/weed/pb/mq_pb/mq_broker_grpc.pb.go +++ b/weed/pb/mq_pb/mq_broker_grpc.pb.go @@ -8,6 +8,7 @@ package mq_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/remote_pb/remote.pb.go b/weed/pb/remote_pb/remote.pb.go index f7b3866c5..2c9e2389b 100644 --- a/weed/pb/remote_pb/remote.pb.go +++ b/weed/pb/remote_pb/remote.pb.go @@ -7,11 +7,12 @@ package remote_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/s3_pb/s3.pb.go b/weed/pb/s3_pb/s3.pb.go index 67d6ef11d..c44071594 100644 --- a/weed/pb/s3_pb/s3.pb.go +++ b/weed/pb/s3_pb/s3.pb.go @@ -7,11 +7,12 @@ package s3_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/s3_pb/s3_grpc.pb.go b/weed/pb/s3_pb/s3_grpc.pb.go index f5f43f54f..daef9cf30 100644 --- a/weed/pb/s3_pb/s3_grpc.pb.go +++ b/weed/pb/s3_pb/s3_grpc.pb.go @@ -8,6 +8,7 @@ package s3_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/schema_pb/mq_schema.pb.go b/weed/pb/schema_pb/mq_schema.pb.go index 45d04c7bd..246615daf 100644 --- a/weed/pb/schema_pb/mq_schema.pb.go +++ b/weed/pb/schema_pb/mq_schema.pb.go @@ -7,11 +7,12 @@ package schema_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/schema_pb/offset_test.go b/weed/pb/schema_pb/offset_test.go index 273d2d5d1..69aeb812c 100644 --- a/weed/pb/schema_pb/offset_test.go +++ b/weed/pb/schema_pb/offset_test.go @@ -1,8 +1,9 @@ package schema_pb import ( - "google.golang.org/protobuf/proto" "testing" + + "google.golang.org/protobuf/proto" ) func TestOffsetTypeEnums(t *testing.T) { diff --git a/weed/pb/server_discovery.go b/weed/pb/server_discovery.go index 25c0360c5..59a333f0a 100644 --- a/weed/pb/server_discovery.go +++ b/weed/pb/server_discovery.go @@ -1,8 +1,9 @@ package pb import ( - "github.com/seaweedfs/seaweedfs/weed/glog" "reflect" + + "github.com/seaweedfs/seaweedfs/weed/glog" ) // ServerDiscovery encodes a way to find at least 1 instance of a service, diff --git a/weed/pb/volume_server_pb/volume_server.pb.go b/weed/pb/volume_server_pb/volume_server.pb.go index 7b174f8dd..cf0ad3ffb 100644 --- a/weed/pb/volume_server_pb/volume_server.pb.go +++ b/weed/pb/volume_server_pb/volume_server.pb.go @@ -7,12 +7,13 @@ package volume_server_pb import ( - remote_pb "github.com/seaweedfs/seaweedfs/weed/pb/remote_pb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + remote_pb "github.com/seaweedfs/seaweedfs/weed/pb/remote_pb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/volume_server_pb/volume_server_grpc.pb.go b/weed/pb/volume_server_pb/volume_server_grpc.pb.go index 02818ab38..690ee99fc 100644 --- a/weed/pb/volume_server_pb/volume_server_grpc.pb.go +++ b/weed/pb/volume_server_pb/volume_server_grpc.pb.go @@ -8,6 +8,7 @@ package volume_server_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/pb/worker_pb/worker.pb.go b/weed/pb/worker_pb/worker.pb.go index f0bd661c1..a24dd92b0 100644 --- a/weed/pb/worker_pb/worker.pb.go +++ b/weed/pb/worker_pb/worker.pb.go @@ -7,11 +7,12 @@ package worker_pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( diff --git a/weed/pb/worker_pb/worker_grpc.pb.go b/weed/pb/worker_pb/worker_grpc.pb.go index 0b0a9ad09..4894e7d25 100644 --- a/weed/pb/worker_pb/worker_grpc.pb.go +++ b/weed/pb/worker_pb/worker_grpc.pb.go @@ -8,6 +8,7 @@ package worker_pb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/weed/util/skiplist/skiplist.pb.go b/weed/util/skiplist/skiplist.pb.go index de3efa513..09a9dab9a 100644 --- a/weed/util/skiplist/skiplist.pb.go +++ b/weed/util/skiplist/skiplist.pb.go @@ -7,10 +7,11 @@ package skiplist import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const (