| 3 | import "encoding/json" |
| 4 | |
| 5 | type FileStateEntry struct { |
| 6 | Content string `json:"content"` |
| 7 | TimeStamp float64 `json:"timestamp"` |
| 8 | IsPartialView bool `json:"is_partial_view"` |
| 9 | LineEndings string `json:"line_endings"` |
| 10 | } |
| 11 | |
| 12 | func (f *FileStateEntry) ToMap() (map[string]any, error) { |
| 13 | b, err := json.Marshal(f) |
nothing calls this directly
no outgoing calls
no test coverage detected