MCPcopy Create free account
hub / github.com/kataras/iris / getLayout

Function getLayout

view/view.go:107–117  ·  view source on GitHub ↗

returns empty if it's no layout or empty layout and empty configuration's layout.

(layout string, globalLayout string)

Source from the content-addressed store, hash-verified

105
106// returns empty if it's no layout or empty layout and empty configuration's layout.
107func getLayout(layout string, globalLayout string) string {
108 if layout == NoLayout {
109 return ""
110 }
111
112 if layout == "" && globalLayout != "" {
113 return globalLayout
114 }
115
116 return layout
117}

Callers 2

ExecuteWriterMethod · 0.85
ExecuteWriterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…