MCPcopy Create free account
hub / github.com/goadesign/goa / goTypeRef

Function goTypeRef

codegen/scope.go:355–361  ·  view source on GitHub ↗
(name string, dt expr.DataType)

Source from the content-addressed store, hash-verified

353}
354
355func goTypeRef(name string, dt expr.DataType) string {
356 // For a raw struct, no need to dereference
357 if isRawStruct(dt) {
358 return name
359 }
360 return "*" + name
361}
362
363func isRawStruct(dt expr.DataType) bool {
364 if _, ok := dt.(*expr.Object); ok {

Callers 3

GoTypeRefMethod · 0.85
GoTypeRefWithDefaultsMethod · 0.85
GoFullTypeRefMethod · 0.85

Calls 1

isRawStructFunction · 0.85

Tested by

no test coverage detected