西维蜀黍

【Golang】源码 - Context 包

  ...


【Golang】源码 - bytes.buffer

  ...


【TrueNAS】同步到S3

Price

以 US East (N. Virginia) 为例

  • S3 Glacier Deep Archive ** - For long-term data archiving that is accessed once or twice in a year and can be restored within 12 hours

    • $0.00099 per GB per month,也就是一个月 1TB 0.99美元
  • S3 Glacier Flexible Retrieval - For long-term backups and archives with retrieval option from 1 minute to 12 hours

    • $0.004 per GB per month,也就是一个月 1TB 4美元
  • S3 Glacier Instant Retrieval *** - For long-lived archive data accessed once a quarter with instant retrieval in milliseconds

    • $0.004 per GB per month,也就是一个月 1TB 4美元

Refer to https://aws.amazon.com/s3/pricing/

  ...


【Golang】源码 - fmt.print

// Fprintf formats according to a format specifier and writes to w.
// It returns the number of bytes written and any write error encountered.
func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
	p := newPrinter()
	p.doPrintf(format, a)
	n, err = w.Write(p.buf)
	p.free()
	return
}

// Sprintf formats according to a format specifier and returns the resulting string.
func Sprintf(format string, a ...interface{}) string {
	p := newPrinter()
	p.doPrintf(format, a)
	s := string(p.buf)
	p.free()
	return s
}
  ...


【Golang】源码 - strings.Builder

Definition

type Builder struct {
	// contains filtered or unexported fields
}

A Builder is used to efficiently build a string using Write methods. It minimizes memory copying. The zero value is ready to use. Do not copy a non-zero Builder.

  ...