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