NewStatsFormat returns a format for rendering an CStatsContext
(source, osType string)
| 103 | |
| 104 | // NewStatsFormat returns a format for rendering an CStatsContext |
| 105 | func NewStatsFormat(source, osType string) formatter.Format { |
| 106 | if source == formatter.TableFormatKey { |
| 107 | if osType == winOSType { |
| 108 | return winDefaultStatsTableFormat |
| 109 | } |
| 110 | return defaultStatsTableFormat |
| 111 | } |
| 112 | return formatter.Format(source) |
| 113 | } |
| 114 | |
| 115 | // NewStats returns a new Stats entity using the given ID, ID-prefix, or |
| 116 | // name to resolve the container. |
no outgoing calls
no test coverage detected
searching dependent graphs…