* regen files with never protoc * rewrite import path Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
		
			
				
	
	
		
			16 lines
		
	
	
		
			245 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			245 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package file
 | |
| 
 | |
| import (
 | |
| 	"strings"
 | |
| 
 | |
| 	"github.com/unistack-org/micro/v3/config/encoder"
 | |
| )
 | |
| 
 | |
| func format(p string, e encoder.Encoder) string {
 | |
| 	parts := strings.Split(p, ".")
 | |
| 	if len(parts) > 1 {
 | |
| 		return parts[len(parts)-1]
 | |
| 	}
 | |
| 	return e.String()
 | |
| }
 |