We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0477561 commit 383532aCopy full SHA for 383532a
io.go
@@ -73,23 +73,6 @@ func NewCborWriter(w io.Writer) *CborWriter {
73
return cw
74
}
75
76
-// Init is half way between NewCborWriter and .SetWriter()
77
-// If the passed in writer is a *CborWriter then return that,
78
-// otherwise set up *cw
79
-func (cw *CborWriter) Init(w io.Writer) *CborWriter {
80
- if w, ok := w.(*CborWriter); ok {
81
- return w
82
- }
83
-
84
- cw.w = w
85
86
- if sw, ok := w.(io.StringWriter); ok {
87
- cw.sw = sw
88
89
90
- return cw
91
-}
92
93
func (cw *CborWriter) SetWriter(w io.Writer) {
94
cw.w = w
95
if sw, ok := w.(io.StringWriter); ok {
0 commit comments