go-rel/gin-example

View on GitHub
todos/delete.go

Summary

Maintainability
A
0 mins
Test Coverage
package todos

import (
    "context"

    "github.com/go-rel/rel"
)

type delete struct {
    repository rel.Repository
}

func (d delete) Delete(ctx context.Context, todo *Todo) {
    d.repository.MustDelete(ctx, todo)
}