code: func SupportedPlatforms(v string) []Platform {
  	// Use latest if we get an unexpected version string
  	if !strings.HasPrefix(v, "go") {
  		return PlatformsLatest
  	}
  	// go-version only cares about version numbers
  	v = v[2:]
  
  	current, err := version.NewVersion(v)
  	if err != nil {
  		log.Printf("Unable to parse current go version: %s\n%s", v, err.Error())
  
  		// Default to latest
  		return PlatformsLatest
  	}
  
  	var platforms = []struct {
  		constraint string
  		plat       []Platform
  	}{
  		{"<= 1.0", Platforms_1_0},
  		{">= 1.1, < 1.3", Platforms_1_1},
  		{">= 1.3, < 1.4", Platforms_1_3},
  		{">= 1.4, < 1.5", Platforms_1_4},
  		{">= 1.5, < 1.6", Platforms_1_5},
  		{">= 1.6, < 1.7", Platforms_1_6},
  		{">= 1.7, < 1.8", Platforms_1_7},
  		{">= 1.8, < 1.9", Platforms_1_8},
  		{">= 1.9, < 1.10", Platforms_1_9},
  		{">=1.10, < 1.11", Platforms_1_10},
  	}
  
  	for _, p := range platforms {
  		constraints, err := version.NewConstraint(p.constraint)
  		if err != nil {
  			panic(err)
  		}
  		if constraints.Check(current) {
  			return p.plat
  		}
  	}
  
  	// Assume latest
  	return Platforms_1_9
  }
docs: // SupportedPlatforms returns the full list of supported platforms for
  // the version of Go that is