Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-gorm/gorm
/ Last
Method
Last
generics.go:640–644 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
638
}
639
640
func
(g execG[T]) Last(ctx context.Context) (T, error) {
641
var
r T
642
err := g.g.apply(ctx).Last(&r).Error
643
return
r, err
644
}
645
646
func
(g execG[T]) Take(ctx context.Context) (T, error) {
647
var
r T
Callers
nothing calls this directly
Calls
2
apply
Method · 0.80
Last
Method · 0.65
Tested by
no test coverage detected