Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

302 B
Raw Blame
package format

// DashIfEmpty returns "-" for empty strings, otherwise s itself. Standard
// rendering convention for human-readable table cells whose value is
// optional (e.g. user email in `auth list` / `profile list`).
func DashIfEmpty(s string) string {
	if s == "" {
		return "-"
	}
	return s
}