Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimitedBufferReader ¶
NewLimitedBufferReader returns a reader that reads from the given reader but limits the amount of data returned to at most n bytes.
func WriteAndSyncFile ¶ added in v2.2.3
WriteAndSyncFile behaviors just like ioutil.WriteFile in standard library but calls Sync before closing the file. WriteAndSyncFile guarantees the data is synced if there is no error returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.