Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
klauern committed Sep 17, 2015
1 parent 58e5f50 commit a817576
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cobra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package cli
import "testing"

func TestApplicationsFlags(t *testing.T) {

}
// TODO write tests for all application flags
}
9 changes: 9 additions & 0 deletions wls/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ type RequestClass struct {
VirtualTimeIncrement int
}

// GoString generates a formatted string representation of an Application instance. This can be used in the following
// way:
//
// a := &Application{...}
// fmt.Sprintf("%#v", a)
//
// In printing a string-formatted representation of the Application, only fields and sections where there are
// actual values will be displayed. As such, you may find sections missing, such as a MinThreadsConstraint or RequestClass
// should there not be one defined for that particular Application.
func (a *Application) GoString() string {
var buffer bytes.Buffer

Expand Down

0 comments on commit a817576

Please sign in to comment.