go get -u github.com/danielgatis/go-utf8
And then import the package in your code:
import "github.com/danielgatis/go-utf8"
Please look at: examples/parserlog/main.go
Copyright (c) 2024-present Daniel Gatis
Licensed under MIT License