Documentation
¶
Overview ¶
Package nilslices makes nil slices empty before encoding/json sees them. encoding/json writes a nil slice as null; Tern sends [] for pages, typed endpoints and live components instead, so their TypeScript types are T[] rather than T[] | null. Remove copies only what lies on a path to a nil slice: everything else is shared, never changed, so data cached across requests is safe. Values that encode themselves are left to do so.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.