Hub.get.file.got: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/hub/hub.bend as Hub Lines 19-26 of ezx@1.11.0.0/src/hub/hub.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/hub/hub.bend&start_line=19&end_line=26 import Base # a file url read off the disk. curl served these too, and a test that wants a # body without a server to serve it is the reason to keep them. def get.file.got(got: Maybe<&2, String>, path: String) -> String: match got: case None{}: "2\n" ++ path ++ " is not there" case Some{s}: "0\n" ++ s Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append