mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	 c412dcdc4f
			
		
	
	c412dcdc4f
	
	
	
		
			
			Go 1.19 also formats doc comments according to the new godoc syntax. Some of our comments, especially unexported symbols did not conform to the godoc syntax and therefore are mangled by 'go fmt'. This PR runs 'go fmt' from go1.19 on everything and manually fixes the problems. See also: https://github.com/golang/proposal/blob/master/design/51082-godocfmt.md
		
			
				
	
	
		
			17 lines
		
	
	
		
			922 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			922 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Package locspec implements code to parse a string into a specific
 | |
| // location specification.
 | |
| //
 | |
| // Location spec examples:
 | |
| //
 | |
| //	locStr ::= <filename>:<line> | <function>[:<line>] | /<regex>/ | (+|-)<offset> | <line> | *<address>
 | |
| //
 | |
| //	* <filename> can be the full path of a file or just a suffix
 | |
| //	* <function> ::= <package>.<receiver type>.<name> | <package>.(*<receiver type>).<name> | <receiver type>.<name> | <package>.<name> | (*<receiver type>).<name> | <name>
 | |
| //	  <function> must be unambiguous
 | |
| //	* /<regex>/ will return a location for each function matched by regex
 | |
| //	* +<offset> returns a location for the line that is <offset> lines after the current line
 | |
| //	* -<offset> returns a location for the line that is <offset> lines before the current line
 | |
| //	* <line> returns a location for a line in the current file
 | |
| //	* *<address> returns the location corresponding to the specified address
 | |
| package locspec
 |