mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
		
			362 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			362 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package langs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "testing"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestMessageCode_For(t *testing.T) {
							 | 
						||
| 
								 | 
							
									defaultManager.AddLang("en-us").
							 | 
						||
| 
								 | 
							
										Set("name", "Lily")
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									var messageCode MessageCode = "name"
							 | 
						||
| 
								 | 
							
									t.Log(messageCode.String(), string(messageCode))
							 | 
						||
| 
								 | 
							
									t.Log(messageCode.For("en-us"))
							 | 
						||
| 
								 | 
							
								}
							 |