Skip to content

Commit bfdcd37

Browse files
Rename examples to work with later versions of Golang
1 parent 6024823 commit bfdcd37

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/simple_test.go renamed to examples/example_cel_eval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/google/cel-go/cel"
2222
)
2323

24-
func ExampleSimple() {
24+
func Example_cel_Eval() {
2525
env, err := cel.NewEnv(cel.Variable("name", cel.StringType))
2626
if err != nil {
2727
log.Fatalf("environment creation error: %v\n", err)

examples/custom_instance_function_test.go renamed to examples/example_cel_member_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/google/cel-go/common/types/ref"
2424
)
2525

26-
func ExampleCustomInstanceFunction() {
26+
func Example_cel_MemberOverload() {
2727
env, err := cel.NewEnv(cel.Lib(customLib{}))
2828
if err != nil {
2929
log.Fatalf("environment creation error: %v\n", err)

examples/custom_global_function_test.go renamed to examples/example_cel_overload_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/google/cel-go/common/types/ref"
2424
)
2525

26-
func ExampleCustomGlobalFunction() {
26+
func Example_cel_Overload() {
2727
env, err := cel.NewEnv(
2828
cel.Variable("i", cel.StringType),
2929
cel.Variable("you", cel.StringType),

0 commit comments

Comments
 (0)