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/input.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 homework/81319/golang2html_code_fold/input.go (limited to 'homework/81319/golang2html_code_fold/input.go') diff --git a/homework/81319/golang2html_code_fold/input.go b/homework/81319/golang2html_code_fold/input.go new file mode 100644 index 0000000..0a31497 --- /dev/null +++ b/homework/81319/golang2html_code_fold/input.go @@ -0,0 +1,21 @@ +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() +} \ No newline at end of file -- cgit v1.3.1-26-gb76a