(inter interface{})
| 116 | } |
| 117 | |
| 118 | func Interface2String(inter interface{}) string { |
| 119 | switch inter.(type) { |
| 120 | case string: |
| 121 | return inter.(string) |
| 122 | case int: |
| 123 | return fmt.Sprintf("%d", inter.(int)) |
| 124 | case float64: |
| 125 | return fmt.Sprintf("%f", inter.(float64)) |
| 126 | } |
| 127 | return "Not Implemented" |
| 128 | } |
| 129 | |
| 130 | func UnescapeHTML(x string) interface{} { |
| 131 | return template.HTML(x) |
no outgoing calls
no test coverage detected