LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Package reflect implements run-time reflection, allowing a program to | 5 // Package reflect implements run-time reflection, allowing a program to |
6 // manipulate objects with arbitrary types. The typical use is to take a value | 6 // manipulate objects with arbitrary types. The typical use is to take a value |
7 // with static type interface{} and extract its dynamic type information by | 7 // with static type interface{} and extract its dynamic type information by |
8 // calling TypeOf, which returns a Type. | 8 // calling TypeOf, which returns a Type. |
9 // | 9 // |
10 // A call to ValueOf returns a Value representing the run-time data. | 10 // A call to ValueOf returns a Value representing the run-time data. |
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 retOffset: retOffset, | 1815 retOffset: retOffset, |
1816 } | 1816 } |
1817 layoutCache.Unlock() | 1817 layoutCache.Unlock() |
1818 return x, argSize, retOffset | 1818 return x, argSize, retOffset |
1819 } | 1819 } |
1820 | 1820 |
1821 // isDirectIface reports whether t is stored directly in an interface value. | 1821 // isDirectIface reports whether t is stored directly in an interface value. |
1822 func isDirectIface(t *rtype) bool { | 1822 func isDirectIface(t *rtype) bool { |
1823 return t.kind&kindDirectIface != 0 | 1823 return t.kind&kindDirectIface != 0 |
1824 } | 1824 } |
LEFT | RIGHT |