Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 04:40
Show Gist options
  • Select an option

  • Save manakuro/ea082486e45a7802d79758850ab6a2e4 to your computer and use it in GitHub Desktop.

Select an option

Save manakuro/ea082486e45a7802d79758850ab6a2e4 to your computer and use it in GitHub Desktop.
package repository
import (
"context"
"golang-clean-architecture-ent-gqlgen/pkg/entity/model"
)
// User is an interface of repository
type User interface {
Get(ctx context.Context, id *int) (*model.User, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment