Files
Go-StudyExample/SourceAnalysisAndTool/mapstructure/DefaultHook_test.go
T
Huangzj b2315db276 feat(Go-StudyExample):
2021/01/27:新增mapstructure源码阅读和单测代码
2021-01-27 14:01:19 +08:00

18 lines
369 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @Author : huangzj
* @Time : 2021/1/25 16:09
* @Description
*/
package example
import (
"github.com/mitchellh/mapstructure"
"testing"
)
func TestDefaultHook(t *testing.T) {
//在 mitchellh/mapstructure 这个工程中提供了部分的默认Hook方法,主要作用是进行转换,具体可以查看源码
mapstructure.StringToIPNetHookFunc()
}