Sha256: 10293730fdfec93b21e23fd7f06db2f848fdf7b15f050a6612100e64da8aeb0f

Contents?: true

Size: 888 Bytes

Versions: 119

Compression:

Stored size: 888 Bytes

Contents

// This is a "stub" file.  It's a little start on your solution.
// It's not a complete solution though; you have to write some code.

// Package twofer should have a package comment that summarizes what it's about.
// https://golang.org/doc/effective_go.html#commentary
package triangle


// Notice KindFromSides() returns this type. Pick a suitable data type.
type Kind

const (
    // Pick values for the following identifiers used by the test program.
    NaT // not a triangle
    Equ // equilateral
    Iso // isosceles
    Sca // scalene
)

// ShareWith should have a comment documenting it.
func KindFromSides(a, b, c float64) Kind {
	// Write some code here to pass the test suite.
	// Then remove all the stock comments.
	// They're here to help you get started but they only clutter a finished solution.
	// If you leave them in, reviewers may protest!
	var k Kind
	return k
}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
trackler-2.2.1.177 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.176 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.175 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.174 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.173 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.172 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.171 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.170 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.169 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.167 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.166 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.165 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.164 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.163 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.162 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.161 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.160 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.159 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.158 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.157 tracks/go/exercises/triangle/triangle.go