Releases: ShindouMihou/korin
Releases · ShindouMihou/korin
v0.0.1-beta04
fix: `headers.Format` has wrong parameters
v0.0.1-beta03
Changelog
- Fixes a critical bug wherein imports are not changed to the correct path (i.e. when we preprocess, we create a new directory usually
.build
, but in this bug, we didn't change the imports to that directory, which means that all imports in the same module were going to the unprocessed files, leading to the preprocessor being useless).
We recommend specifying where your go.mod
is located, or specifying your module names, through:
k := korin.New()
// Specify the module name, this will skip reading the `go.mod` to find the module name, which can
// make preprocessing somewhat faster (not significantly since we only read one line).
// k.ModuleName = "github.com/ShindouMihou/korin"
// Specifying the location of your go.mod, not providing a ModuleName, and also not providing the correct
// path to your go.mod will result in an error since it cannot find the Module Name.
// k.ModulePath = "./go.mod"
v0.0.1-beta02
Changelog
- Adds support for annotating entire structs using
k:named
. - Adds support for plugins to have contexts for specific files (can be used to help maintain contexts or data among multiple lines in files).
- Fixes a bug where
ScopeEndKind
isn't identified when there is a comment on a type struct. - Fixes a bug where type structs cannot be identified properly when there is a comment.
- Fixes a bug where field declarations cannot be identified when there is an abrupt end (i.e. no annotations).
v0.0.1-beta01
Changelog
- Adds support for
type declaration
labels (such asstructs
andinterfaces
) - Adds plugin called
k:named
which can annotate struct and interface fields automatically for serializers. - Fixes bug where
build
doesn't respect thedir
parameter. - Improves the README.md file significantly.
- Adds support for
const
andvar
declarations (including multi-line variants). - Adds support for
env
plugin which can automatically substitute variable values with environment values on process-time. - Renames
ReadAssistant
toReadHelper
,WriteAssistant
toSyntaxHelper
and addsAnalysisHelper
for analysis assistance. - Adds more helper functions to
ReadHelper
andSyntaxHelper
and adds their relevant documentation. - Improves documentation for
Headers
and addsRemoveImport
function. - Renames
korin
pkg tokplugins
and renameskbuild
tokorin
for clarity. - Adds documentations to creating a plugin for Korin.
- Adds
korin.DockerBuildStep
for properly using Korin as a Docker buildstep.
v0.0.1-alpha02
fix: korin pkg imports
v0.0.1-alpha01
fix: korin pkg