Skip to content

Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper

Latest
Compare
Choose a tag to compare
@devfeel devfeel released this 06 Sep 02:32

Version 0.7.14

  • Feature: Implement variable arguments based on NewMapper for flexible configuration settings when you init mapper.
  • Feature: Add Setting struct used to Config mapper
  • you can use like this:
  // Default Setting:
  // EnabledTypeChecking:      false,
  // EnabledMapperStructField: true,
  // EnabledAutoTypeConvert:   true,
  // EnabledMapperTag:         true,
  // EnabledJsonTag:           true,
  // EnabledCustomTag:         false,
  // EnableFieldIgnoreTag:     false,
  
  /// When you use default setting
  NewMapper()
  
  /// When you will change some setting
  NewMapper(CTypeChecking(true), CCustomTagName("-"))
  • 2024-09-06 19:00 in ShangHai

Full Changelog: v0.7.13...v0.7.14