refactor: change module path
This commit is contained in:
15 files changed
+25
-25
No files matched your search
+6
-6
@@ -10,12 +10,12 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/analyze"
|
||||
"github.com/ytshih/stonks/internal/archive"
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"github.com/ytshih/stonks/internal/fetch"
|
||||
"github.com/ytshih/stonks/internal/output"
|
||||
"github.com/ytshih/stonks/internal/report"
|
||||
"gitea.konchin.com/service/stonks/internal/analyze"
|
||||
"gitea.konchin.com/service/stonks/internal/archive"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/fetch"
|
||||
"gitea.konchin.com/service/stonks/internal/output"
|
||||
"gitea.konchin.com/service/stonks/internal/report"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/ytshih/stonks
|
||||
module gitea.konchin.com/service/stonks
|
||||
|
||||
go 1.27.0
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
// AdvisorPreamble is prepended to the shared data prompt when consulting an
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
// Analyzer sends a prompt to Claude and returns the response text.
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/anthropics/anthropic-sdk-go"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"github.com/ytshih/stonks/internal/fetch"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/fetch"
|
||||
)
|
||||
|
||||
// SystemPrompt instructs Claude how to analyze the fetched data and format
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/ytshih/stonks/internal/report"
|
||||
"gitea.konchin.com/service/stonks/internal/report"
|
||||
)
|
||||
|
||||
// recommendationsMarker must match the marker text SystemPrompt instructs
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"github.com/ytshih/stonks/internal/fetch"
|
||||
"github.com/ytshih/stonks/internal/report"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/fetch"
|
||||
"gitea.konchin.com/service/stonks/internal/report"
|
||||
)
|
||||
|
||||
const defaultDir = "~/.local/state/stonks/runs"
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
// Quote is a single point-in-time price observation for one symbol.
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/mmcdole/gofeed"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"github.com/ytshih/stonks/internal/report"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/report"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/ytshih/stonks/internal/config"
|
||||
"github.com/ytshih/stonks/internal/report"
|
||||
"gitea.konchin.com/service/stonks/internal/config"
|
||||
"gitea.konchin.com/service/stonks/internal/report"
|
||||
)
|
||||
|
||||
// Output delivers the final report somewhere (Discord, Slack, email, ...).
|
||||
|
||||
Reference in new issue
Block a user