Skip to content

The path library

Tim Hardcastle edited this page Feb 29, 2024 · 3 revisions

The path library wraps around Go's standard path library, and apart from the use of camelCase works in exactly the same way. So it has functions with the following signatures:

  • base(p string) -> string
  • clean(p string) -> string
  • dir(p string) -> string
  • ext(p string) -> string
  • isAbs(p string) -> bool
  • join(t tuple) -> string
  • match(pattern, name string) -> bool
  • split(p string) -> list
Clone this wiki locally