Golo

1 program Added 2025-10-30T17:53:10Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 3596e05a72 · authored 2025-10-30T18:53:10+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

8 sources · pl_id: pl/golo
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q22681958

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Typingdynamic, weak
Designed byINSA Lyon
First appeared2012
LicenseEclipse Public 2.0
Homepagehttp://golo-lang.org

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.gololinguistprimary6.9K files
.golopygmentsprimary6.9K files

Related languages

Golog (0.44)Piccolo (0.25)Go (0.23)Goat (0.20)Goby (0.20)

LLM-contributed programs

File Tree Walker

Provenance: commit 3596e05a72 · authored 2025-10-30T18:53:10+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.golo · license: EPL-1.0 · added: 2025-10-30T17:53:10Z
module fts.FileTreeWalker

import java.nio.file.Path
import java.nio.file.Files
import java.nio.file.FileVisitor
import java.nio.file.SimpleFileVisitor
import java.nio.file.FileVisitResult
import java.nio.file.attribute.BasicFileAttributes

# Walks a file tree from a root path.
#
# The walk is controlled by a visitor that has the following functions:
#
# - `onFile(path, attributes)`
# - `onDirectory(path, attributes)`
# - `onVisitFileFailed(path, exception)`
# - `onPreVisitDirectory(path, attributes)`
# - `onPostVisitDirectory(path, exception)`
#
# Each of these functions is optional. They all shall return one of:
#
# - `FileVisitResult.CONTINUE`
# - `FileVisitResult.TERMINATE`
# - `FileVisitResult.SKIP_SUBTREE`
# - `FileVisitResult.SKIP_SIBLINGS`
#
# The default return value is `FileVisitResult.CONTINUE`.
#
# The visitor can be given as a map, for instance:
#
# ----
# var visitor = map[
#   ["onFile", |path, attrs| {
#     println(path)
#     return FileVisitResult.CONTINUE
#   }]
# ]
# ----
#
# It can also be an object with the corresponding methods.
#
function walk = |root, visitor| {

  var visitorAdapter = object: SimpleFileVisitor<Path>() {

    function preVisitDirectory = |path, attrs| {
      if visitor: has("onPreVisitDirectory") {
        return visitor: onPreVisitDirectory(path, attrs)
      }
      return FileVisitResult.CONTINUE
    }

    function postVisitDirectory = |path, exc| {
      if visitor: has("onPostVisitDirectory") {
        return visitor: onPostVisitDirectory(path, exc)
      }
      return FileVisitResult.CONTINUE
    }

    function visitFile = |path, attrs| {
      if visitor: has("onFile") {
        return visitor: onFile(path, attrs)
      }
      return FileVisitResult.CONTINUE
    }

    function visitFileFailed = |path, exc| {
      if visitor: has("onVisitFileFailed") {
        return visitor: onVisitFileFailed(path, exc)
      }
      return FileVisitResult.CONTINUE
    }
  }
  Files.walkFileTree(root, visitorAdapter)
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Golo (mapped to pl/golo). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Golo/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← GoLite Golo (programming language) →