refactor: update module path to git.pengzhan.dev/haopengzhan/hireme across all internal packages and imports
This commit is contained in:
@@ -25,7 +25,7 @@ It completely automates the job search workflow by crawling job boards, analyzin
|
|||||||
1. **Clone the repository:**
|
1. **Clone the repository:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/hireme/hireme.git
|
git clone https://git.pengzhan.dev/haopengzhan/hireme.git
|
||||||
cd hireme
|
cd hireme
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -6,12 +6,12 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/analyzer"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/analyzer"
|
||||||
"github.com/hireme/hireme/internal/config"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/config"
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
"github.com/hireme/hireme/internal/ui"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/ui"
|
||||||
"github.com/hireme/hireme/internal/worker"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/worker"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/hireme/hireme
|
module git.pengzhan.dev/haopengzhan/hireme
|
||||||
|
|
||||||
go 1.26
|
go 1.26
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/config"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AnalysisOutput struct {
|
type AnalysisOutput struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/filter"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/filter"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LiveTestConfig defines what a live integration test expects from a crawler.
|
// LiveTestConfig defines what a live integration test expects from a crawler.
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// QueueStats holds task queue counters
|
// QueueStats holds task queue counters
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package filter
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FilterResult struct {
|
type FilterResult struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHardKeywordFilter(t *testing.T) {
|
func TestHardKeywordFilter(t *testing.T) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type compiledBlacklist struct {
|
type compiledBlacklist struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type KeywordWeight struct {
|
type KeywordWeight struct {
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/config"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/config"
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
"github.com/hireme/hireme/internal/worker"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/config"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/config"
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHandleDeleteTarget(t *testing.T) {
|
func TestHandleDeleteTarget(t *testing.T) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
var funcMap = template.FuncMap{
|
var funcMap = template.FuncMap{
|
||||||
|
|||||||
+19
-19
@@ -9,25 +9,25 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/analyzer"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/analyzer"
|
||||||
"github.com/hireme/hireme/internal/config"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/config"
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/db"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/db"
|
||||||
"github.com/hireme/hireme/internal/filter"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/filter"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
"github.com/hireme/hireme/pkg/crawler/amazon"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/amazon"
|
||||||
"github.com/hireme/hireme/pkg/crawler/apple"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/apple"
|
||||||
"github.com/hireme/hireme/pkg/crawler/bytedance"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/bytedance"
|
||||||
"github.com/hireme/hireme/pkg/crawler/databricks"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/databricks"
|
||||||
"github.com/hireme/hireme/pkg/crawler/google"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/google"
|
||||||
"github.com/hireme/hireme/pkg/crawler/linkedin"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/linkedin"
|
||||||
"github.com/hireme/hireme/pkg/crawler/meta"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/meta"
|
||||||
"github.com/hireme/hireme/pkg/crawler/microsoft"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/microsoft"
|
||||||
"github.com/hireme/hireme/pkg/crawler/netflix"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/netflix"
|
||||||
"github.com/hireme/hireme/pkg/crawler/nvidia"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/nvidia"
|
||||||
"github.com/hireme/hireme/pkg/crawler/snowflake"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/snowflake"
|
||||||
"github.com/hireme/hireme/pkg/crawler/stripe"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/stripe"
|
||||||
"github.com/hireme/hireme/pkg/crawler/uber"
|
"git.pengzhan.dev/haopengzhan/hireme/pkg/crawler/uber"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WorkerPool struct {
|
type WorkerPool struct {
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AmazonCrawler struct {
|
type AmazonCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AppleCrawler struct {
|
type AppleCrawler struct {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ByteDanceCrawler struct {
|
type ByteDanceCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DatabricksCrawler struct {
|
type DatabricksCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
md "github.com/JohannesKaufmann/html-to-markdown/v2"
|
md "github.com/JohannesKaufmann/html-to-markdown/v2"
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LinkedInCrawler struct {
|
type LinkedInCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/chromedp/cdproto/cdp"
|
"github.com/chromedp/cdproto/cdp"
|
||||||
"github.com/chromedp/chromedp"
|
"github.com/chromedp/chromedp"
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MetaCrawler struct{}
|
type MetaCrawler struct{}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MicrosoftCrawler struct {
|
type MicrosoftCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NetflixCrawler struct {
|
type NetflixCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NvidiaCrawler struct {
|
type NvidiaCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SnowflakeCrawler struct {
|
type SnowflakeCrawler struct {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StripeCrawler struct {
|
type StripeCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler"
|
||||||
"github.com/hireme/hireme/internal/logger"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UberCrawler struct {
|
type UberCrawler struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hireme/hireme/internal/crawler/crawlertest"
|
"git.pengzhan.dev/haopengzhan/hireme/internal/crawler/crawlertest"
|
||||||
)
|
)
|
||||||
|
|
||||||
type roundTripFunc func(req *http.Request) *http.Response
|
type roundTripFunc func(req *http.Request) *http.Response
|
||||||
|
|||||||
Reference in New Issue
Block a user