From b6cd5e5021599d34cf2461a457333e64a040ad81 Mon Sep 17 00:00:00 2001 From: Benjamin Weidig Date: Sun, 27 May 2018 10:52:54 +0200 Subject: [PATCH] added comment to semigraphic related code --- semigraphics.go | 3 +++ util.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/semigraphics.go b/semigraphics.go index 5a0eb7f..937c0c0 100644 --- a/semigraphics.go +++ b/semigraphics.go @@ -141,6 +141,9 @@ const ( BoxDrawingsHeavyUpAndLightDown rune = '\u257f' // ╿ ) +// SemigraphicJoints is a map for joining semigraphic (or otherwise) runes. +// So far only light lines are supported but if you want to change the border +// styling you need to provide the joints, too. var SemigraphicJoints = map[string]rune{ string([]rune{BoxDrawingsLightHorizontal, BoxDrawingsLightVertical}): BoxDrawingsLightVerticalAndHorizontal, string([]rune{BoxDrawingsLightHorizontal, BoxDrawingsLightDownAndRight}): BoxDrawingsLightDownAndHorizontal, diff --git a/util.go b/util.go index 3f03b38..3fe2e0f 100644 --- a/util.go +++ b/util.go @@ -20,7 +20,7 @@ const ( ) // Deprecated semigraphical runes. -// You should use the runes provided by semigraphical.go instead. +// You should use the runes provided by semigraphical.go or Borders directly. const ( GraphicsHoriBar = BoxDrawingsLightHorizontal GraphicsVertBar = BoxDrawingsLightVertical