1 package jwriter 2 3 // Writable is an interface for types that can write their data to a Writer. 4 type Writable interface { 5 // WriteToJSONWriter writes JSON content to the Writer. 6 // 7 // This method does not need to return an error value. If the Writer encounters an error during output 8 // generation, it will remember its own error state, which can be detected with Writer.Error(). 9 WriteToJSONWriter(*Writer) 10 } 11