mirror of
				https://github.com/onyx-and-iris/aoc2024.git
				synced 2025-11-03 22:41:46 +00:00 
			
		
		
		
	upd scaffold
This commit is contained in:
		
							parent
							
								
									f0bf82c96a
								
							
						
					
					
						commit
						d32b376619
					
				
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -26,5 +26,7 @@ go.work.sum
 | 
			
		||||
.env
 | 
			
		||||
 | 
			
		||||
# input files
 | 
			
		||||
partial.txt
 | 
			
		||||
input.txt
 | 
			
		||||
**/testdata/*.txt
 | 
			
		||||
 | 
			
		||||
# scaffold
 | 
			
		||||
mkfiles.sh
 | 
			
		||||
							
								
								
									
										12
									
								
								scaffold.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								scaffold.sh
									
									
									
									
									
								
							@ -56,6 +56,18 @@ func main() {
 | 
			
		||||
}
 | 
			
		||||
EOT
 | 
			
		||||
 | 
			
		||||
touch "$name"/solve.go
 | 
			
		||||
cat <<EOT >> "$name"/makefile
 | 
			
		||||
package name
 | 
			
		||||
 | 
			
		||||
func Solve(data []byte) (int, int, error) {
 | 
			
		||||
	return 0, 0, nil
 | 
			
		||||
}
 | 
			
		||||
EOT
 | 
			
		||||
 | 
			
		||||
cd "$name" || exit
 | 
			
		||||
 | 
			
		||||
go mod init github.com/onyx-and-iris/aoc2024/"$name"
 | 
			
		||||
 | 
			
		||||
MKFILES=../mkfiles.sh
 | 
			
		||||
[[ -f $MKFILES ]] && ln -s $MKFILES .
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user