github.com/april1989/origin-go-tools@v0.0.32/cmd/godex/isAlias19.go (about)

     1  // Copyright 2017 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  // +build go1.9
     6  
     7  package main
     8  
     9  import "go/types"
    10  
    11  func isAlias(obj *types.TypeName) bool {
    12  	return obj.IsAlias()
    13  }