`Id` is causing the linters to complain when implementing the db interface.
from the go project https://github.com/golang/go/wiki/CodeReviewComments#initialisms
> This rule also applies to "ID" when it is short for "identifier" (which is pretty much all cases when it's not the "id" as in "ego", "superego"), so write "appID" instead of "appId".
このコミットが含まれているのは:
Sevki 2020-03-20 15:37:09 +00:00 committed by GitHub
コミット e7c3ac2533
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -108,13 +108,13 @@ type Database interface {
//
// The library makes this call only after acquiring a lock first.
SetOutbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error
// NewId creates a new IRI id for the provided activity or object. The
// NewID creates a new IRI id for the provided activity or object. The
// implementation does not need to set the 'id' property and simply
// needs to determine the value.
//
// The go-fed library will handle setting the 'id' property on the
// activity or object provided with the value returned.
NewId(c context.Context, t vocab.Type) (id *url.URL, err error)
NewID(c context.Context, t vocab.Type) (id *url.URL, err error)
// Followers obtains the Followers Collection for an actor with the
// given id.
//