Skip to content

Releases: hymkor/struct2flag

v0.2.0

Choose a tag to compare

@hymkor hymkor released this 19 Aug 06:31

Changes in v0.2.0 (English)

  • Support float64 (#2)
  • Support time.Duration (#3)

Changes in v0.2.0 (Japanese)

  • float64 をサポート (#2)
  • time.Duration をサポート (#3)

v0.1.0

Choose a tag to compare

@hymkor hymkor released this 19 Aug 04:55

Changes in v0.1.0 (English)

  • Added support for option parsers other than the flag package by using an interface instead of directly depending on flag.FlagSet. Any type that provides methods such as StringVar can now be used. (#1)
  • Added the BindTag method, allowing arbitrary struct tag names to be used. (#1)

Changes in v0.1.0 (Japanese)

  • "flag" パッケージ以外のオプションパーサーを利用できるように、"flag" の FlagSet を直接使わず、interface を使って、StringVar などのメソッドを定義した型ならどれでも利用できるようにした。(#1)
  • BindTag メソッドを追加し、任意の構造体タグ名を利用できるようにした。(#1)

v0.0.4

Choose a tag to compare

@hymkor hymkor released this 14 Oct 03:30

Changes in v0.0.4 in (English)

  • Changed recursive binding behavior: Only struct or struct pointer fields explicitly tagged with flag:"" are now traversed recursively. This prevents unintended recursion into unrelated struct types.

Changes in v0.0.4 in (Japanese)

  • 再帰的にたどる対象は flag:"" というタグがついた構造体/ポインターのみとした

v0.0.3

Choose a tag to compare

@hymkor hymkor released this 13 Oct 13:26

Changes in v0.0.3 in (English)

  • Fix: panic: reflect.Value.Interface: cannot return value obtained from unexported field or method when unexported fields exist.

Changes in v0.0.3 in (Japanese)

  • エクスポートされていないフィールドがあると、panic: reflect.Value.Interface: cannot return value obtained from unexported field or method が発生する問題を修正

v0.0.2

Choose a tag to compare

@hymkor hymkor released this 12 Oct 20:13

Changes in v0.0.2 in (English)

  • Made the binding process recursive for non-nil struct and struct pointer fields.
  • Added support for uint type.

Changes in v0.0.2 in (Japanese)

  • 非nil な構造体型フィールド下のタグも再帰的に参照するようにした
  • uint型もサポート

v0.0.1

Choose a tag to compare

@hymkor hymkor released this 12 Oct 20:12
90d3100

Changes in v0.0.1 (English)

  • Initial release.
  • Supported only bool, int, and string field types.

Changes in v0.0.1 (Japanese)

  • 初版
  • bool, int, string 型フィールドのみをサポート