Sha256: fe6891ef7512719fc419ff3acd04641e23907acabc990d4fadd2b0c57d433072

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

<%-
import 'context'
import model.package
import 'datastore'
import 'log'
import 'goon'
-%>

func (s *<%= type.name %>) Put(ctx context.Context, m *<%= model.qualified_name %>) (*datastore.Key, error) {
	g := goon.FromContext(ctx)
	key, err := g.Put(m)
	if err != nil {
		log.Errorf(ctx, "Failed to Put %v because of %v\n", m, err)
		return nil, err
	}
	return key, nil
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
goon_model_gen-0.4.3 lib/goon_model_gen/templates/store/goon/21_Put.go.erb
goon_model_gen-0.4.2 lib/goon_model_gen/templates/store/goon/21_Put.go.erb
goon_model_gen-0.4.1 lib/goon_model_gen/templates/store/goon/21_Put.go.erb
goon_model_gen-0.4.0 lib/goon_model_gen/templates/store/goon/21_Put.go.erb