You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							215 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							215 B
						
					
					
				
								package comment_count
							 | 
						|
								
							 | 
						|
								type Option func(*Entity)
							 | 
						|
								
							 | 
						|
								func WithId(id int64) Option {
							 | 
						|
									return func(e *Entity) {
							 | 
						|
										e.Id = id
							 | 
						|
									}
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func WithNumber(number int64) Option {
							 | 
						|
									return func(e *Entity) {
							 | 
						|
										e.Number = number
							 | 
						|
									}
							 | 
						|
								}
							 | 
						|
								
							 |