Problem: since main scanning functions use goroutines there is no way to stop them externally if used as library.
Solution: add new function which accept content as first parameters. In main loops of goroutines check for context in select statement and shutdown in case it closed.
Problem: since main scanning functions use goroutines there is no way to stop them externally if used as library. Solution: add new function which accept content as first parameters. In main loops of goroutines check for context in select statement and shutdown in case it closed.