string

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: EPL-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package string exposes JVM-faithful java.lang.String equivalents for code running on glojure. Each symbol is published in up to three ways:

  • as a Go package-level value (used when gloat AOT-compiles a Clojure call site to a direct Go reference such as `compatstring.Format`);
  • through glojure's pkgmap under both `String.foo` and the fully qualified `github.com/glojurelang/glojure/pkg/javacompat/string.Foo` names (used by the REPL and any dynamic resolution path); and
  • for instance-style methods (`(.toUpperCase s)`, `(.length s)`, etc.) via lang.RegisterStringMethod, which the FieldOrMethod dispatch path consults when the receiver is a Go string.

Where the JVM signature is overloaded by arity (indexOf(ch) / indexOf(ch, from) / indexOf(sub) / indexOf(sub, from)), the bridge dispatches polymorphically at call time. Char-typed args accept either int32 (UTF-16 unit) or lang.Char.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyValueOf

func CopyValueOf(args ...any) string

func Format

func Format(args ...any) string

func Join

func Join(args ...any) string

func ValueOf

func ValueOf(x any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL