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
import (
"go.probo.inc/probo/pkg/gid"
"github.com/jackc/pgx/v5"
"go.probo.inc/probo/pkg/gid"
)
type (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -43,4 +43,3 @@ func (p *DataProtectionImpactAssessmentOrderField) UnmarshalText(text []byte) er
}
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) {
return p.String(), nil
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -19,9 +19,9 @@ import (
"context"
_ "embed"
"fmt"
"html/template"
"io"
"strings"
"html/template"
"time"
"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 other profile: no_match
}

View File

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

View File

@@ -21,9 +21,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
"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/gid"
"go.gearno.de/kit/pg"
)
type ReportService struct {

View File

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

View File

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

View File

@@ -18,10 +18,10 @@ import (
"context"
"fmt"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/page"
"go.gearno.de/kit/pg"
)
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/service/s3"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid"
"go.gearno.de/kit/pg"
)
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/service/s3"
"go.gearno.de/kit/pg"
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/gid"
"go.probo.inc/probo/pkg/page"
"go.gearno.de/kit/pg"
)
type TrustCenterReferenceService struct {

View File

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