Run gofmt and add badge to readme
This commit is contained in:
		@@ -71,8 +71,8 @@ func Convert(in reflect.Value, toType reflect.Type) (reflect.Value, error) {
 | 
			
		||||
	// If input is a slice of any, and output is an array or slice
 | 
			
		||||
	if in.Type() == reflect.TypeOf([]any{}) &&
 | 
			
		||||
		to.Kind() == reflect.Slice || to.Kind() == reflect.Array {
 | 
			
		||||
			// Use ConvertSlice to convert value
 | 
			
		||||
			to.Set(reflect.ValueOf(ConvertSlice(
 | 
			
		||||
		// Use ConvertSlice to convert value
 | 
			
		||||
		to.Set(reflect.ValueOf(ConvertSlice(
 | 
			
		||||
			in.Interface().([]any),
 | 
			
		||||
			toType,
 | 
			
		||||
		)))
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ type Request struct {
 | 
			
		||||
type Response struct {
 | 
			
		||||
	ID        string
 | 
			
		||||
	IsChannel bool
 | 
			
		||||
	IsError bool
 | 
			
		||||
	IsError   bool
 | 
			
		||||
	Error     string
 | 
			
		||||
	Return    any
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user