Skip to content

Tags: devfeel/mapper

Tags

v0.7.14

Toggle v0.7.14's commit message
#### 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:
``` go
  // 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

v0.7.13

Toggle v0.7.13's commit message
#### Version 0.7.13

* Feature: Added the "composite-field" tag to continue expanding and searching for corresponding field mappings when encountering composite fields in a Struct. Currently, only one level of expansion is supported.
* Tips: Thanks to @naeemaei for issue #39
* For my birthday!
* you can use like this:
``` go
  // Base model
  type BaseModel struct {
      Id    int `json:"id"`
  }

  // Country model
  type Country struct {
      BaseModel `json:"composite-field"`
      Name      string `json:"name"`
  }
```
* 2023-04-15 19:00 in ShangHai

v0.7.10

Toggle v0.7.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #32 from devfeel/develop

BugFix: remove go mod file.

v0.7.9.1

Toggle v0.7.9.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #31 from devfeel/develop

bugfix: fix the module name

v0.7.9

Toggle v0.7.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #24 from devfeel/develop

feature: mapper ignore tag processor

v0.7.8

Toggle v0.7.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #21 from devfeel/develop

Refactored the static version implementation

v0.7.7

Toggle v0.7.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #19 from devfeel/develop

#### Version 0.7.7
Feature: add Object-oriented interface for the mapper.
comment: the old version implementation will be refactored in next release.
Tips: Thanks to @shyandsy

v0.7.6

Toggle v0.7.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Create LICENSE

v0.7.5

Toggle v0.7.5's commit message
#### Version 0.7.5

* Feature: Support for *[] to *[] with MapperSlice
* Ops: Definitive error messages
* Tips: Merge pull request #9 from MrWormHole/master, Thanks to @mrwormhole
* 2021-01-26 12:00 in ShangHai

v0.7.4

Toggle v0.7.4's commit message
#### Version 0.7.4

* Feature: AutoMapper&Mapper support mapper struct to map[string]interface{}
* Refactor: set MapperMapSlice to Deprecated, will remove on v1.0
* About AutoMapper::
  ```
  func Test_AutoMapper_StructToMap(t *testing.T) {
  	from := &FromStruct{Name: "From", Sex: true, AA: "AA"}
  	to := make(map[string]interface{})
  	err := AutoMapper(from, &to)
  	if err != nil {
  		t.Error("RunResult error: mapper error", err)
  	} else {
  		if to["UserName"] == "From"{
  			t.Log("RunResult success:", to)
  		}else{
  			t.Error("RunResult failed: map[UserName]", to["UserName"])
  		}
  	}
  }
  ```
* 2020-06-07 16:00 in ShangHai