Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setIndirect (0.14 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    				line.Token[1] = v
    			}
    		} else {
    			if len(line.Token) >= 3 { // require example.com v1.2.3
    				line.Token[2] = v
    			}
    		}
    	}
    }
    
    // setIndirect sets line to have (or not have) a "// indirect" comment.
    func (r *Require) setIndirect(indirect bool) {
    	r.Indirect = indirect
    	line := r.Syntax
    	if isIndirect(line) == indirect {
    		return
    	}
    	if indirect {
    		// Adding comment.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top