Skip to content

Instantly share code, notes, and snippets.

View thekostya's full-sized avatar

Konstantin Ryabov thekostya

View GitHub Profile
package main
import "fmt"
func main() {
deferExample()
fmt.Println("Returned from deferExample.")
}
func deferExample() {
package main
import (
"fmt"
)
type Printer func (s string)
type PrinterDecorator func (Printer) Printer