Learning packages
This commit is contained in:
		
						commit
						cb77a4baeb
					
				
							
								
								
									
										3
									
								
								go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								go.mod
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
module k3gtpi.jumpingcrab.com/go-learning/mystrings
 | 
			
		||||
 | 
			
		||||
go 1.24.5
 | 
			
		||||
							
								
								
									
										9
									
								
								mystrings.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								mystrings.go
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
package mystrings
 | 
			
		||||
 | 
			
		||||
func Reverse(s string) string {
 | 
			
		||||
	result := ""
 | 
			
		||||
	for _, v := range s {
 | 
			
		||||
		result = string(v) + result
 | 
			
		||||
	}
 | 
			
		||||
	return result
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user