Skip to content

Instantly share code, notes, and snippets.

@pkrnjevic
pkrnjevic / traverse_node.go
Created January 29, 2021 23:17 — forked from xeoncross/traverse_node.go
Simple DOM node traversal in golang using a very useful collector/matcher function
package main
import (
"bytes"
"fmt"
"io"
"strings"
"unicode"
"golang.org/x/net/html"
package main
import (
"flag"
"log"
"net/http"
"strings"
)
// FileSystem custom file system handler
class MyFunc
constructor: ->
@name = "default name"
return "Hello from MyFunc(). this.name = " + @name
$get: ->
@name = "new name"
"Hello from MyFunc.$get(). this.name = " + @name
app = angular.module("app", [])