gitlab.com/evatix-go/core@v1.3.55/coredata/coredynamic/MapKeysStringSliceAnyMust.go (about)

     1  package coredynamic
     2  
     3  import "reflect"
     4  
     5  func MapKeysStringSliceAnyMust(any interface{}) []string {
     6  	reflectVal := reflect.ValueOf(any)
     7  
     8  	mapKeys, err := MapKeysStringSlice(reflectVal)
     9  
    10  	if err != nil {
    11  		panic(err)
    12  	}
    13  
    14  	return mapKeys
    15  }