Home | History | Annotate | Download | only in whitelist
      1 // Copyright 2013 The Go Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 // Package whitelist defines exceptions for the vet tool.
      6 package whitelist
      7 
      8 // UnkeyedLiteral is a white list of types in the standard packages
      9 // that are used with unkeyed literals we deem to be acceptable.
     10 var UnkeyedLiteral = map[string]bool{
     11 	// These image and image/color struct types are frozen. We will never add fields to them.
     12 	"image/color.Alpha16": true,
     13 	"image/color.Alpha":   true,
     14 	"image/color.CMYK":    true,
     15 	"image/color.Gray16":  true,
     16 	"image/color.Gray":    true,
     17 	"image/color.NRGBA64": true,
     18 	"image/color.NRGBA":   true,
     19 	"image/color.NYCbCrA": true,
     20 	"image/color.RGBA64":  true,
     21 	"image/color.RGBA":    true,
     22 	"image/color.YCbCr":   true,
     23 	"image.Point":         true,
     24 	"image.Rectangle":     true,
     25 	"image.Uniform":       true,
     26 
     27 	"unicode.Range16": true,
     28 }
     29