Skip to content

coldfire-x/tore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tore

extract information for web page

How to use

package main

import (
    "log"
    "net/http"
    "time"

    "github.com/pengfei-xue/tore"
    "github.com/pengfei-xue/tore/libs"
)

func main() {
    log.Println("Runing on 0.0.0.0:8080")
    s := &http.Server{
        Addr:         "0.0.0.0:8080",
        Handler:      tore.NewHttpHandler(),
        ReadTimeout:  10 * time.Second,
        WriteTimeout: 10 * time.Second,
    }
    log.Fatal(s.ListenAndServe())
}

func init() {
    // tore.SetAlg("simple")
    tore.SetAlg("ttr")
}

About

extract information for web page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages