Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tw (0.43 sec)

  1. src/archive/tar/writer.go

    // will implicitly flush out the file's padding.
    func (tw *Writer) Flush() error {
    	if tw.err != nil {
    		return tw.err
    	}
    	if nb := tw.curr.logicalRemaining(); nb > 0 {
    		return fmt.Errorf("archive/tar: missed writing %d bytes", nb)
    	}
    	if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
    		return tw.err
    	}
    	tw.pad = 0
    	return nil
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/sds/writer.go

    		return nil
    	}
    	tw := new(tabwriter.Writer).Init(w.w, 0, 5, 5, ' ', 0)
    	fmt.Fprintln(tw, strings.Join(secretItemColumns, "\t"))
    	for _, s := range secrets {
    		if includeConfigType {
    			s.Name = fmt.Sprintf("secret/%s", s.Name)
    		}
    		fmt.Fprintf(tw, "%s\t%s\t%s\t%t\t%s\t%s\t%s\n",
    			s.Name, s.Type, s.State, s.Valid, s.SerialNumber, s.NotAfter, s.NotBefore)
    	}
    	return tw.Flush()
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top