Skip to content

v0.1.0

Compare
Choose a tag to compare
@nfx nfx released this 17 Sep 14:19
· 15 commits to main since this release

Initial release in this repository, after around six months in the scope of the another repository. It's now possible to use it as dependency-free library:

import "github.com/nfx/go-htmltable"

type Ticker struct {
    Symbol   string `header:"Symbol"`
    Security string `header:"Security"`
    CIK      string `header:"CIK"`
}

url := "https://en.wikipedia.org/wiki/List_of_S%26P_500_companies"
out, _ := htmltable.NewSliceFromURL[Ticker](url)
fmt.Println(out[0].Symbol)
fmt.Println(out[0].Security)

// Output: 
// MMM
// 3M