Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gop / usr / lib / gop / parser / _nofmt / exists / parser.expect
Size: Mime:
package main

file exists.gop
noEntrypoint
ast.FuncDecl:
  Name:
    ast.Ident:
      Name: main
  Type:
    ast.FuncType:
      Params:
        ast.FieldList:
  Body:
    ast.BlockStmt:
      List:
        ast.AssignStmt:
          Lhs:
            ast.Ident:
              Name: a
          Tok: :=
          Rhs:
            ast.SliceLit:
              Elts:
                ast.BasicLit:
                  Kind: INT
                  Value: 1
                ast.BasicLit:
                  Kind: INT
                  Value: 3
                ast.BasicLit:
                  Kind: INT
                  Value: 5
                ast.BasicLit:
                  Kind: INT
                  Value: 7
                ast.BasicLit:
                  Kind: INT
                  Value: 8
                ast.BasicLit:
                  Kind: INT
                  Value: 19
        ast.AssignStmt:
          Lhs:
            ast.Ident:
              Name: hasEven
          Tok: :=
          Rhs:
            ast.ComprehensionExpr:
              Tok: {
              Fors:
                ast.ForPhrase:
                  Value:
                    ast.Ident:
                      Name: x
                  X:
                    ast.Ident:
                      Name: a
                  Cond:
                    ast.BinaryExpr:
                      X:
                        ast.BinaryExpr:
                          X:
                            ast.Ident:
                              Name: x
                          Op: %
                          Y:
                            ast.BasicLit:
                              Kind: INT
                              Value: 2
                      Op: ==
                      Y:
                        ast.BasicLit:
                          Kind: INT
                          Value: 0