Source file src/runtime/typekind.go

     1  // Copyright 2014 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 runtime
     6  
     7  import "internal/abi"
     8  
     9  // isDirectIface reports whether t is stored directly in an interface value.
    10  func isDirectIface(t *_type) bool {
    11  	return t.Kind_&abi.KindDirectIface != 0
    12  }
    13  

View as plain text