project init
This commit is contained in:
		
							parent
							
								
									6f877bb498
								
							
						
					
					
						commit
						6e70217644
					
				
							
								
								
									
										14
									
								
								function.go
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								function.go
									
									
									
									
									
								
							@ -1,5 +1,19 @@
 | 
				
			|||||||
package grlogs
 | 
					package grlogs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"crypto/md5"
 | 
				
			||||||
 | 
						"encoding/hex"
 | 
				
			||||||
 | 
						"fmt"
 | 
				
			||||||
 | 
						"io/ioutil"
 | 
				
			||||||
 | 
						"math/rand"
 | 
				
			||||||
 | 
						"os"
 | 
				
			||||||
 | 
						"path"
 | 
				
			||||||
 | 
						"reflect"
 | 
				
			||||||
 | 
						"runtime"
 | 
				
			||||||
 | 
						"strings"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//传入一个字符串,返回一个加密后的md5
 | 
					//传入一个字符串,返回一个加密后的md5
 | 
				
			||||||
func Md5(str string) string {
 | 
					func Md5(str string) string {
 | 
				
			||||||
	data := []byte(str)
 | 
						data := []byte(str)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user