mirror of
https://github.com/MedUnes/go-kata.git
synced 2026-03-12 21:55:53 +07:00
15 lines
196 B
Go
15 lines
196 B
Go
package profile
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Profile struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Service interface {
|
|
Get(ctx context.Context, id int) (*Profile, error)
|
|
}
|