v11_jaimetest/pkg/app/app.go
jaime merino 491131321a
Some checks failed
/ upload-many (push) Failing after 1m16s
test inti
2026-01-28 16:21:17 +01:00

27 lines
338 B
Go

package app
import (
"context"
"fmt"
)
func RunApp(ctx context.Context) error {
u := &User{
Name: "hola",
}
if !UserOK(ctx, u) {
return fmt.Errorf("could not found user")
}
return nil
}
type User struct {
Name string
}
func UserOK(ctx context.Context, user *User) bool {
if user == nil {
return false
}
return true
}