mirror of
				https://github.com/SourceFellows/gobuch.git
				synced 2025-11-04 07:36:19 +01:00 
			
		
		
		
	initial import
This commit is contained in:
		
							
								
								
									
										18
									
								
								best-practices/force-interface/main.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								best-practices/force-interface/main.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
package main
 | 
			
		||||
 | 
			
		||||
type UserService interface {
 | 
			
		||||
	Save()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ UserService = &MyUserService{}
 | 
			
		||||
 | 
			
		||||
type MyUserService struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (us *MyUserService) Save() {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user