Commit aa480733 authored by gabriel.zachmann's avatar gabriel.zachmann
Browse files

add missing function comments

parent 6bf246af
......@@ -51,10 +51,12 @@ func otherValue(i interface{}) HTMLString {
return HTMLString(fmt.Sprintf("%v", i))
// ObjectToTable returns an HTMLString representing the passed object as a table
func ObjectToTable(o interface{}) HTMLString {
return MapToTable(utils.StructToMap(o, "html"))
// MapToTable returns an HTMLString representing the passed map as a table
func MapToTable(m map[string]interface{}) HTMLString {
html := HTMLString(`<table class="table table-striped"><tbody>`)
keys := make([]string, 0, len(m))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment