Repository navigation
·
1 commit
to master
since this release
Immutable
release. Only release title and notes can be modified.
File.readDirreturns the entries of a directory asFile.Entryrecords, each with its name and whether it is a directory or a symbolic link, so telling directories from files needs noFile.statper entry.- Host declaration files: a
.d.antfile beside a program's root module declares what a host adds to the prelude.ant check,ant code, the language server, and the Go API check and complete a script against it with no host running. Running a program that reads a name only the file declares is a load error. - Embedding:
Runtime.TagandProgram.Taggive a host the tag of a record type its namespace declares, andvalue.NewInstant,value.NewDuration,value.GoTime, andvalue.GoDurationconvertTime.InstantandTime.Durationto and from Go's. A new guide, Embedding Ant in a Go program, walks through a host. ant testprints a program that fails to load asant rundoes, and as error events under-json.
Breaking changes:
Json.parseisErrfor an object that repeats a name, and for an escaped surrogate outside a pair, as Go'sencoding/json/v2is. It used to keep the last value of a repeated name.