Go format

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-03 11:17:05 +01:00
parent 3c70b1e3eb
commit 21ed4113c3
47 changed files with 112 additions and 119 deletions

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -19,10 +19,10 @@ import (
"fmt" "fmt"
"time" "time"
"go.probo.inc/probo/pkg/crypto/cipher"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/crypto/cipher"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -43,4 +43,3 @@ func (p *DataProtectionImpactAssessmentOrderField) UnmarshalText(text []byte) er
} }
return fmt.Errorf("invalid DataProtectionImpactAssessmentOrderField value: %q", val) return fmt.Errorf("invalid DataProtectionImpactAssessmentOrderField value: %q", val)
} }

View File

@@ -66,4 +66,3 @@ func (p *DataProtectionImpactAssessmentResidualRisk) Scan(value any) error {
func (p DataProtectionImpactAssessmentResidualRisk) Value() (driver.Value, error) { func (p DataProtectionImpactAssessmentResidualRisk) Value() (driver.Value, error) {
return p.String(), nil return p.String(), nil
} }

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -20,9 +20,9 @@ import (
"maps" "maps"
"time" "time"
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.gearno.de/kit/pg" "go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -43,4 +43,3 @@ func (p *TransferImpactAssessmentOrderField) UnmarshalText(text []byte) error {
} }
return fmt.Errorf("invalid TransferImpactAssessmentOrderField value: %q", val) return fmt.Errorf("invalid TransferImpactAssessmentOrderField value: %q", val)
} }

View File

@@ -15,8 +15,8 @@
package coredata package coredata
import ( import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
) )
type ( type (

View File

@@ -21,9 +21,9 @@ import (
"errors" "errors"
"testing" "testing"
"go.probo.inc/probo/pkg/crypto/keys"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.probo.inc/probo/pkg/crypto/keys"
) )
func TestGenerate(t *testing.T) { func TestGenerate(t *testing.T) {

View File

@@ -31,9 +31,9 @@ import (
"testing" "testing"
"time" "time"
"go.probo.inc/probo/pkg/crypto/pem"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.probo.inc/probo/pkg/crypto/pem"
) )
func TestEncodeCertificate(t *testing.T) { func TestEncodeCertificate(t *testing.T) {

View File

@@ -19,9 +19,9 @@ import (
"context" "context"
_ "embed" _ "embed"
"fmt" "fmt"
"html/template"
"io" "io"
"strings" "strings"
"html/template"
"time" "time"
"github.com/digitorus/timestamp" "github.com/digitorus/timestamp"

View File

@@ -217,4 +217,3 @@ func TestParseAction(t *testing.T) {
}) })
} }
} }

View File

@@ -443,4 +443,3 @@ func TestEvaluationResult_IsAllowed(t *testing.T) {
}) })
} }
} }

View File

@@ -204,4 +204,3 @@ func Example_conditionBasedAccess() {
// User update own profile: allow // User update own profile: allow
// User update other profile: no_match // User update other profile: no_match
} }

View File

@@ -86,4 +86,3 @@ func (m *ActionMatcher) MatchesAny(patterns []string, target string) bool {
} }
return false return false
} }

View File

@@ -21,9 +21,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata" "go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid" "go.probo.inc/probo/pkg/gid"
"go.gearno.de/kit/pg"
) )
type ReportService struct { type ReportService struct {

View File

@@ -15,8 +15,8 @@
package pageinfo package pageinfo
import ( import (
"go.probo.inc/probo/pkg/page"
"go.gearno.de/x/ref" "go.gearno.de/x/ref"
"go.probo.inc/probo/pkg/page"
) )
type PageInfo struct { type PageInfo struct {

View File

@@ -20,11 +20,11 @@ import (
"fmt" "fmt"
"time" "time"
"go.gearno.de/kit/log"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/connector" "go.probo.inc/probo/pkg/connector"
"go.probo.inc/probo/pkg/coredata" "go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/crypto/cipher" "go.probo.inc/probo/pkg/crypto/cipher"
"go.gearno.de/kit/log"
"go.gearno.de/kit/pg"
) )
type ( type (

View File

@@ -18,10 +18,10 @@ import (
"context" "context"
"fmt" "fmt"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata" "go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid" "go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/page" "go.probo.inc/probo/pkg/page"
"go.gearno.de/kit/pg"
) )
type AuditService struct { type AuditService struct {

View File

@@ -22,9 +22,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata" "go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid" "go.probo.inc/probo/pkg/gid"
"go.gearno.de/kit/pg"
) )
type OrganizationService struct { type OrganizationService struct {

View File

@@ -22,10 +22,10 @@ import (
"github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata" "go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid" "go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/page" "go.probo.inc/probo/pkg/page"
"go.gearno.de/kit/pg"
) )
type TrustCenterReferenceService struct { type TrustCenterReferenceService struct {

View File

@@ -18,9 +18,9 @@ import (
"strings" "strings"
"testing" "testing"
"go.probo.inc/probo/pkg/version"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.probo.inc/probo/pkg/version"
) )
func TestGetBuildInfo(t *testing.T) { func TestGetBuildInfo(t *testing.T) {