XO0158: `use` not followed by a valid import path
use takes a slash separated module path (use std/http, use github.com/acme/billing/invoice) or, for Go packages, use go "path" with a non empty, relative, plain string. Empty segments (std//http), a missing path, an empty or absolute Go path, and interpolation in a Go path are rejected. See core 4.1 and 4.4.
Example
use std//http
fn ok() -> http.Response { http.text(200, "ok") }Fix
use std/http
fn ok() -> http.Response { http.text(200, "ok") }Run xo explain XO0158 for this text in a terminal, or see
section 10.6 of the specification.