Skip to content

Commit 6cb1ab5

Browse files
committed
pkg
1 parent 4b2c368 commit 6cb1ab5

39 files changed

+38
-33
lines changed

Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ format: ## Format code using gofmt
1313
clean: ## Clean build artifacts
1414
rm -rf ./bin
1515

16-
build: ## Build the project
17-
go build -o ./bin/judgeval ./src
16+
build: ## Build the example application
17+
go build -o ./bin/judgeval ./examples
1818

1919
deps: ## Download dependencies
2020
go mod download
@@ -26,9 +26,15 @@ generate-client: ## Generate API client from OpenAPI spec
2626
python3 scripts/generate-client.py
2727
make format
2828

29-
run: ## Run the main application with environment variables
29+
run: ## Run the example application with environment variables
3030
@if [ -f .env ]; then \
31-
set -a && . ./.env && set +a && go run ./src; \
31+
set -a && . ./.env && set +a && go run ./examples; \
3232
else \
33-
go run ./src; \
33+
go run ./examples; \
3434
fi
35+
36+
test: ## Run tests
37+
go test ./...
38+
39+
install: ## Install the library (for local development)
40+
go install ./...
File renamed without changes.

src/data/example.go renamed to pkg/data/example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package data
33
import (
44
"time"
55

6-
"github.com/JudgmentLabs/judgeval-go/src/internal/api/models"
6+
"github.com/JudgmentLabs/judgeval-go/pkg/internal/api/models"
77
"github.com/google/uuid"
88
)
99

src/data/example_evaluation_run.go renamed to pkg/data/example_evaluation_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package data
33
import (
44
"time"
55

6-
"github.com/JudgmentLabs/judgeval-go/src/internal/api/models"
6+
"github.com/JudgmentLabs/judgeval-go/pkg/internal/api/models"
77
"github.com/google/uuid"
88
)
99

src/data/trace_evaluation_run.go renamed to pkg/data/trace_evaluation_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package data
22

33
import (
4-
"github.com/JudgmentLabs/judgeval-go/src/internal/api/models"
4+
"github.com/JudgmentLabs/judgeval-go/pkg/internal/api/models"
55
)
66

77
type TraceEvaluationRun struct {

src/env/env.go renamed to pkg/env/env.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var (
99
JudgmentDefaultGPTModel = getEnvVar("JUDGMENT_DEFAULT_GPT_MODEL", "gpt-4.1")
1010
JudgmentNoColor = getEnvVar("JUDGMENT_NO_COLOR")
1111
JudgmentLogLevel = getEnvVar("JUDGMENT_LOG_LEVEL", "warn")
12-
JudgmentVersion = "1.0.0"
1312
)
1413

1514
func getEnvVar(varName string, defaultValue ...string) string {

src/internal/api/client.go renamed to pkg/internal/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http"
99
"net/url"
1010

11-
"github.com/JudgmentLabs/judgeval-go/src/internal/api/models"
11+
"github.com/JudgmentLabs/judgeval-go/pkg/internal/api/models"
1212
)
1313

1414
type Client struct {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)