When I tried to format a string with googles closure library there was a surprising result. This code:

[codesyntax lang=“java“]

(ns foo
  (:require [goog.string :as gstring])))
  
(gstring/format "%.2f MB" 1000000)  

[/codesyntax]

produces this error:

Uncaught TypeError: Cannot read property ‚call‘ of undefined

To resolve this issue just add this line to your require statement: [goog.string.format]. Whyever that is…