Sha256: 2996b7218c87141d0ed9af0369554b71d229ffae013f9286e635b99228f0a50f
Contents?: true
Size: 370 Bytes
Versions: 14
Compression:
Stored size: 370 Bytes
Contents
<%- import 'context' import model.package -%> func (s *<%= type.name %>) ByID(ctx context.Context, iD int64) (*<%= model.qualified_name %>, error) { r := <%= model.qualified_name %>{ID: iD} err := s.Get(ctx, &r) if err != nil { return nil, err } if s.Hook != nil { if err := s.Hook.AfterGet(ctx, &r); err != nil { return nil, err } } return &r, nil }
Version data entries
14 entries across 14 versions & 1 rubygems