diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d2e6518ca..854ca5348 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-versions: [ '1.18', '1.22' ] + go-versions: [ '1.18', '1.22', '1.24' ] go-arch: [ '386' ] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc197eb1f..5d0b0744e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-versions: [ '1.18', '1.19', '1.20', '1.21', '1.22' ] + go-versions: [ '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24' ] steps: - uses: actions/checkout@v3 - name: Setup Go ${{ matrix.go-version }} diff --git a/expr_test.go b/expr_test.go index bda5551cc..f10350b22 100644 --- a/expr_test.go +++ b/expr_test.go @@ -312,7 +312,7 @@ func ExampleOperator() { // Output: true } -func ExampleOperator_Decimal() { +func ExampleOperator_with_decimal() { type Decimal struct{ N float64 } code := `A + B - C` @@ -585,7 +585,7 @@ func ExampleWithContext() { // Output: 42 } -func ExampleWithTimezone() { +func ExampleTimezone() { program, err := expr.Compile(`now().Location().String()`, expr.Timezone("Asia/Kamchatka")) if err != nil { fmt.Printf("%v", err) diff --git a/internal/difflib/difflib_test.go b/internal/difflib/difflib_test.go index d72511962..60fb1f9cb 100644 --- a/internal/difflib/difflib_test.go +++ b/internal/difflib/difflib_test.go @@ -102,7 +102,7 @@ group } } -func ExampleGetUnifiedDiffCode() { +func ExampleGetUnifiedDiffString() { a := `one two three @@ -135,7 +135,7 @@ four` // -fmt.Printf("%s,%T",a,b) } -func ExampleGetContextDiffCode() { +func ExampleGetContextDiffString() { a := `one two three @@ -172,7 +172,7 @@ four` // four } -func ExampleGetContextDiffString() { +func ExampleGetContextDiffString_second() { a := `one two three