From ceb31e1ce115a7c9a6f0cc365beeb1214b246622 Mon Sep 17 00:00:00 2001 From: Georgi Stefanov Date: Sat, 3 Nov 2018 22:13:19 +0200 Subject: Add foldable blocks in Golang 2 highlighter (#33) * initial commit * Add implementation using concatenation * Added block collapsing * Finish block collapsing * Fix nested blocks and + -> - when collapsing * Remove unnecessary files. * Add readme --- homework/81319/golang2html_code_fold/output.html | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 homework/81319/golang2html_code_fold/output.html (limited to 'homework/81319/golang2html_code_fold/output.html') diff --git a/homework/81319/golang2html_code_fold/output.html b/homework/81319/golang2html_code_fold/output.html new file mode 100644 index 0000000..5a8f88c --- /dev/null +++ b/homework/81319/golang2html_code_fold/output.html @@ -0,0 +1,45 @@ + + hello_world.go + + +
+package main
+
+import (
+	"fmt"
+)
+
+type HelloWorlder struct {
+ message string +
} + + +func (hw *HelloWorlder) greet() {
+ fmt.Println(hw.message) +
} + + +func main() {
+ helloWorlder := &HelloWorlder{
+ message: "Hello, world!", +
} + + + helloWorlder.greet() +
}
+ + -- cgit v1.3.1-26-gb76a