vlang / website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modify a number of examples in vlang.io/docs to run correctly in Playground

tompao opened this issue · comments

  undefined: `number`
    8| }
unexpected token: `enum`
    1| fn main() {
unexpected token: `}`
   11| println(p.x) // Struct fields are accessed using a dot
unexpected token: `struct`
    1| fn main() {
unexpected token: `struct`
    1| fn main() {
unexpected token: `}`
    8| println(world)
unexpected token: `}`
   21| println(blue)
unexpected token: `struct`
    1| fn main() {
unexpected token: `}`
    9| println(color) // "1"  TODO: print "green"? 
undefined: `json`, use `import json`
   14| 

@medvednikov Opened PR to take care of these. Thanks !