Skip to content

Commit

Permalink
chore: replace yaegi stdlib (evcc-io#17603)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Dec 5, 2024
1 parent 7b43760 commit 61e0ad3
Show file tree
Hide file tree
Showing 7 changed files with 448 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provider/golang/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strings"
"sync"

"github.com/evcc-io/evcc/provider/golang/stdlib"
"github.com/traefik/yaegi/interp"
"github.com/traefik/yaegi/stdlib"
)

var (
Expand Down
151 changes: 151 additions & 0 deletions provider/golang/stdlib/fmt.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions provider/golang/stdlib/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package stdlib

import "reflect"

// go:generate yaegi extract fmt
// go:generate yaegi extract math
// go:generate yaegi extract strings
// go:generate yaegi extract time

// Symbols variable stores the map of stdlib symbols per package.
var Symbols = map[string]map[string]reflect.Value{}
116 changes: 116 additions & 0 deletions provider/golang/stdlib/math.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions provider/golang/stdlib/strings.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61e0ad3

Please sign in to comment.