Sha256: 6a23a12dbab4bfa1a46cb469fff67fa267fe82ba47f811d9c0dbafcf1305debd

Contents?: true

Size: 527 Bytes

Versions: 12

Compression:

Stored size: 527 Bytes

Contents

<%-
model = type.map[:model].type
gen_type = type.map[:gen_type].type
mappings = type.memo['mappings'] || []

import model.package
import :gen, gen_type.package

if mappings.any?{|m| m.args.length > 1}
  raise "Multiple arguments for result type mapping is not supported now"
end
if mappings.any?(&:returns_error)
  raise "returns_error (by writer) for result type mapping is not supported now"
end
if mappings.any?(&:requires_context)
  raise "requires_context (by saver) for result type mapping is not supported now"
end
-%>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
goon_model_gen-0.4.3 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.4.2 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.4.1 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.4.0 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.3.1 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.3.0 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.5 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.4 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.3 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.2 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.1 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb
goon_model_gen-0.2.0 lib/goon_model_gen/templates/converter/result/01_base_imports.go.erb