Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + func Register(r Resource) + type ExportOpts struct + Columns []string + Format string + Sheet string + type ImportOpts struct + Format string + Mapping map[string]string + Sheet string + Validate func(row map[string]any) error + type Resource struct + Columns []string + Fetch func(ctx context.Context) ([]map[string]any, error) + Insert func(ctx context.Context, row map[string]any) error + Name string + type RowError struct + Column string + Message string + Row int + func (e RowError) Error() string + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Export(ctx context.Context, rows []map[string]any, opts ExportOpts) ([]byte, error) + func (s *Service) ExportResource(ctx context.Context, name string, opts ExportOpts) ([]byte, error) + func (s *Service) Import(ctx context.Context, data []byte, opts ImportOpts) ([]map[string]any, []RowError, error) + func (s *Service) ImportResource(ctx context.Context, name string, data []byte, opts ImportOpts) (int, []RowError, error)