Sha256: ae25e77230b6c212522b6cc947f9e71f318df091fe929be070881b05514a0d2f
Contents?: true
Size: 388 Bytes
Versions: 4
Compression:
Stored size: 388 Bytes
Contents
<%- import 'context' import model.package import 'datastore' import 'log' -%> func (s *<%= type.name %>) ByKey(ctx context.Context, key *datastore.Key) (*<%= model.qualified_name %>, error) { if err := s.IsValidKey(ctx, key); err != nil { log.Errorf(ctx, "<%= type.name %>.ByKey got Invalid key: %v because of %v\n", key, err) return nil, err } return s.ByID(ctx, key.IntID()) }
Version data entries
4 entries across 4 versions & 1 rubygems