1 // Copyright 2012 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.
7 // MakeRO returns a copy of v with the read-only flag set.
8 func MakeRO(v Value
) Value
{
13 // IsRO reports whether v's read-only flag is set.
14 func IsRO(v Value
) bool {
15 return v
.flag
&flagRO
!= 0