The Wayback Machine - https://web.archive.org/web/20210110074640/https://github.com/codex-team/hawk.go
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Hawk catcher for Golang

Golang errors catcher for Hawk.so

Installation

Go Get

go get https://github.com/codex-team/hawk.go

Usage

package main

import(
  "fmt"
  "log"

	"github.com/codex-team/hawk.go"
)

func main() {
    // initialize Hawk Catcher
    catcher, err := hawk.New("abcd1234-1234-abcd-1234-123456abcdef", hawk.NewHTTPSender())
    if err != nil {
        log.Fatal(err)
    }

    go catcher.Run()
    defer catcher.Stop()

    err = catcher.Catch(fmt.Errorf("Test exception"))
    if err != nil {
        catcher.Stop()
        log.Fatal(err)
    }
}

Issues and improvements

Feel free to ask questions or improve the project.

Links

Repository: https://github.com/codex-team/hawk.go

Report a bug: https://github.com/codex-team/hawk.go/issues

CodeX Team: https://ifmo.su

License

MIT

About

Hawk catcher for Golang

Resources

Packages

No packages published
You can’t perform that action at this time.