Gianluca Mondini
Gianluca Mondini
This code: ```go package main import "fmt" func main() { x := []int{1, 2, 3} i := 0 i, x[i] = 1, 100 fmt.Println(x) } ``` should print: ``` [100...
In the function `checkImport` we import the names without checking if they have already been imported. Not sure if this may lead to incosistencies, we should investigate on it. **NOTE**:...
We may optimize the _if statements_ that have constant expression as condition. For example: ```go if true { } ``` may be replaced by: ```go ``` while: ```go if false...
This code, **executed in Scriggo**, panics the runtime: ```go package main import ( "io" "os" "github.com/open2b/scriggo" "github.com/yuin/goldmark" ) func main() { fsys := scriggo.Files{ "index.html": []byte(`{{ markdown("*b*") }}`), } md...
Add support for Scriggo template in text editors. Editors to consider: * GoLand * Visual Studio Code (Codium, etc..) Note that we already have [a syntax highlighter for highlight.js](https://github.com/open2b/scriggo/tree/main/highlighters/highlight.js) that...
Consider the implementation of a REPL for Scriggo, something like: ```go >>> import "fmt" >>> name := "hey" >>> fmt.Println(name) hey ```
```go "https://github.com/open2b/scriggo/issues/858": { sources: fstest.Files{ "index.html": ` {% import pkg "imported.html" %} {% ref := &pkg.V %} {% *ref = 42 %} {{ pkg.PrintV() }} `, "imported.html": ` {% var...
The mode `compiledir` is used by a lot of tests from _gc_. We should support this mode to be able to import such tests. This is as draft of the...