Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for formatTypeParams (0.45 sec)

  1. src/cmd/doc/pkg.go

    		fnc = strings.TrimPrefix(fnc, "func")
    		return fmt.Sprintf("func %s%s%s", recv, name, fnc)
    
    	case *ast.TypeSpec:
    		sep := " "
    		if n.Assign.IsValid() {
    			sep = " = "
    		}
    		tparams := pkg.formatTypeParams(n.TypeParams, depth)
    		return fmt.Sprintf("type %s%s%s%s", n.Name.Name, tparams, sep, pkg.oneLineNodeDepth(n.Type, depth))
    
    	case *ast.FuncType:
    		var params []string
    		if n.Params != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top