You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/05/23 03:20:01 UTC

[GitHub] [incubator-devlake] warren830 commented on issue #1915: Add more type checks to `DecodeStruct` and `EncodeStruct`

warren830 commented on issue #1915:
URL: https://github.com/apache/incubator-devlake/issues/1915#issuecomment-1134129863

   > i check the `DecodeStruct` and `EncodeStruct` method
   > 
   > * `DecodeStruct` map struct to viper config
   > * `EncodeStruct` map viper config to struct
   > 
   > viper config support data type is:
   > 
   > * bool
   > * int
   > * string
   > * int slice
   > * string slice
   > * map[string]interface{}
   > * map[string]string
   > * float64
   > * interface
   > 
   > so the two method should support
   > 
   > * int slice
   > * string slice
   > * map[string]interface{}
   > * map[string]string
   > * bool
   
   Yes, perfectly right. Do you want to take this one?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org