Skip to content

Releases: ShindouMihou/korin

v0.0.1-beta04

10 Jan 15:47
47bb8f9
Compare
Choose a tag to compare
fix: `headers.Format` has wrong parameters

v0.0.1-beta03

10 Jan 15:24
9df37f0
Compare
Choose a tag to compare

Changelog

  1. 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

10 Jan 14:38
c344b66
Compare
Choose a tag to compare

Changelog

  1. Adds support for annotating entire structs using k:named.
  2. Adds support for plugins to have contexts for specific files (can be used to help maintain contexts or data among multiple lines in files).
  3. Fixes a bug where ScopeEndKind isn't identified when there is a comment on a type struct.
  4. Fixes a bug where type structs cannot be identified properly when there is a comment.
  5. Fixes a bug where field declarations cannot be identified when there is an abrupt end (i.e. no annotations).

v0.0.1-beta01

04 Jan 11:06
f76b318
Compare
Choose a tag to compare

Changelog

  • Adds support for type declaration labels (such as structs and interfaces)
  • Adds plugin called k:named which can annotate struct and interface fields automatically for serializers.
  • Fixes bug where build doesn't respect the dir parameter.
  • Improves the README.md file significantly.
  • Adds support for const and var declarations (including multi-line variants).
  • Adds support for env plugin which can automatically substitute variable values with environment values on process-time.
  • Renames ReadAssistant to ReadHelper, WriteAssistant to SyntaxHelper and adds AnalysisHelper for analysis assistance.
  • Adds more helper functions to ReadHelper and SyntaxHelper and adds their relevant documentation.
  • Improves documentation for Headers and adds RemoveImport function.
  • Renames korin pkg to kplugins and renames kbuild to korin 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

26 Dec 06:58
b4b5a9f
Compare
Choose a tag to compare
fix: korin pkg imports

v0.0.1-alpha01

26 Dec 05:25
bf9c883
Compare
Choose a tag to compare
fix: korin pkg