See how Boundary would look with gofumpt applied (#853)
* See how Boundary would look with https://github.com/mvdan/gofumpt applied Results of running `gofumpt -w -s .` * Update tools file and Makefile for gofumpt Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
1 parent
cca0fbea2b
commit
94cb79bbdd
237 files changed
+1567
-1529
No files matched your search
@@ -43,6 +43,7 @@ func (u *TestUser) Clone() interface{} {
|
||||
StoreTestUser: s.(*StoreTestUser),
|
||||
}
|
||||
}
|
||||
|
||||
func (u *TestUser) TableName() string {
|
||||
if u.table != "" {
|
||||
return u.table
|
||||
@@ -83,6 +84,7 @@ func (c *TestCar) TableName() string {
|
||||
|
||||
return defaultCarTableName
|
||||
}
|
||||
|
||||
func (c *TestCar) SetTableName(name string) {
|
||||
c.table = name
|
||||
}
|
||||
@@ -103,6 +105,7 @@ func NewTestRental() (*TestRental, error) {
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (r *TestRental) TableName() string {
|
||||
if r.table != "" {
|
||||
return r.table
|
||||
@@ -110,6 +113,7 @@ func (r *TestRental) TableName() string {
|
||||
|
||||
return defaultRentalTableName
|
||||
}
|
||||
|
||||
func (r *TestRental) SetTableName(name string) {
|
||||
r.table = name
|
||||
}
|
||||
@@ -137,6 +141,7 @@ func (t *TestScooter) Clone() interface{} {
|
||||
StoreTestScooter: s.(*StoreTestScooter),
|
||||
}
|
||||
}
|
||||
|
||||
func (t *TestScooter) TableName() string {
|
||||
if t.table != "" {
|
||||
return t.table
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
package db_test
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -555,14 +556,17 @@ func file_controller_storage_db_db_test_v1_db_test_proto_rawDescGZIP() []byte {
|
||||
return file_controller_storage_db_db_test_v1_db_test_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
|
||||
(*StoreTestUser)(nil), // 0: controller.storage.db.db_test.v1.StoreTestUser
|
||||
(*StoreTestCar)(nil), // 1: controller.storage.db.db_test.v1.StoreTestCar
|
||||
(*StoreTestRental)(nil), // 2: controller.storage.db.db_test.v1.StoreTestRental
|
||||
(*StoreTestScooter)(nil), // 3: controller.storage.db.db_test.v1.StoreTestScooter
|
||||
(*timestamp.Timestamp)(nil), // 4: controller.storage.timestamp.v1.Timestamp
|
||||
}
|
||||
var (
|
||||
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
|
||||
(*StoreTestUser)(nil), // 0: controller.storage.db.db_test.v1.StoreTestUser
|
||||
(*StoreTestCar)(nil), // 1: controller.storage.db.db_test.v1.StoreTestCar
|
||||
(*StoreTestRental)(nil), // 2: controller.storage.db.db_test.v1.StoreTestRental
|
||||
(*StoreTestScooter)(nil), // 3: controller.storage.db.db_test.v1.StoreTestScooter
|
||||
(*timestamp.Timestamp)(nil), // 4: controller.storage.timestamp.v1.Timestamp
|
||||
}
|
||||
)
|
||||
|
||||
var file_controller_storage_db_db_test_v1_db_test_proto_depIdxs = []int32{
|
||||
4, // 0: controller.storage.db.db_test.v1.StoreTestUser.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
|
||||
4, // 1: controller.storage.db.db_test.v1.StoreTestUser.update_time:type_name -> controller.storage.timestamp.v1.Timestamp
|
||||
|
||||
Reference in new issue
Block a user