write to buffer #1425
Unanswered
qianxiansheng90
asked this question in
Q&A
write to buffer
#1425
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following scenarios exist: Sometimes I wish I could generate a configuration file and then transfer the configuration file to storage. However, since there are many types of storage, you do not want to generate files every time. You can write the configuration file to a buffer, and then write the buffer directly to the storage.
Can you provide an interface like this:
Write(writer io.Writer) error
Beta Was this translation helpful? Give feedback.
All reactions