• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

akutz / golf
92%
master: 77%

Build:
Build:
LAST BUILD BRANCH: v0.1.3
DEFAULT BRANCH: master
Repo Added 08 Sep 2015 10:13PM UTC
Files 4
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v0.1.0
branch: v0.1.0
CHANGE BRANCH
x
Reset
  • v0.1.0
  • feature/glide
  • feature/logrus
  • master
  • v0.1.1
  • v0.1.2
  • v0.1.3

pending completion
15

push

travis-ci

akutz
Go List Fields

Go List Fields (Golf) is a package for the Go language that makes it
incredibly simple to get a list of fields from any type using the Field
Output through Reflective Evaluation function, otherwise known as Fore:

    type Person struct {
        Name string
    }

    p := &Person{"Batman"}

    fields := golf.Fore("hero", p)

    for k,v := range fields {
        fmt.Printf("%s=%v\n", k,v)
    }

The above example will emit the following:

    hero.Name=Batman

A simple example, the true power of Golf is in its configuration
options.

302 of 327 relevant lines covered (92.35%)

4.03 hits per line

Relevant lines Covered
Build:
Build:
327 RELEVANT LINES 302 COVERED LINES
4.03 HITS PER LINE
Source Files on v0.1.0
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
15 v0.1.0 Go List Fields Go List Fields (Golf) is a package for the Go language that makes it incredibly simple to get a list of fields from any type using the Field Output through Reflective Evaluation function, otherwise known as Fore: type Person s... push 08 Sep 2015 10:26PM UTC akutz travis-ci pending completion  
See All Builds (16)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc