surrealdb.go
surrealdb.go copied to clipboard
Various code cleanups
- Added context.Context to most top-level functions
- Renamed errors to follow standard Go pattern
- Refactored
interface{}
toany
- Renamed method receivers to more meaningful names (
self
orthis
are bad practice in Go) - Cleaned some
select
andswitch
uses - Some small performance improvements (less channels created)
- Other various cleanups If this is too much change for one PR, I can split it to smaller ones