diff options
author | Alan Donovan <adonovan@google.com> | 2018-11-01 09:44:00 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2018-11-01 09:44:00 -0400 |
commit | 551f3007041c079746e8c3e675b0fae1cd3299a8 (patch) | |
tree | 4dde566e2da47ac24b16df6a338e6770019f3d72 /starlarkstruct | |
parent | b9737eba2190952940b88fe3a67117c7fa856e6e (diff) | |
download | starlark-go-551f3007041c079746e8c3e675b0fae1cd3299a8.tar.gz |
add docs/PKG/index.html redirects and import comments
Diffstat (limited to 'starlarkstruct')
-rw-r--r-- | starlarkstruct/struct.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starlarkstruct/struct.go b/starlarkstruct/struct.go index 96ad5e4..819fb2f 100644 --- a/starlarkstruct/struct.go +++ b/starlarkstruct/struct.go @@ -4,7 +4,7 @@ // Package starlarkstruct defines the Starlark 'struct' type, // an optional language extension. -package starlarkstruct +package starlarkstruct // import "go.starlark.net/starlarkstruct" // It is tempting to introduce a variant of Struct that is a wrapper // around a Go struct value, for stronger typing guarantees and more @@ -155,7 +155,7 @@ func (s *Struct) String() string { // Constructor returns the constructor used to create this struct. func (s *Struct) Constructor() starlark.Value { return s.constructor } -func (s *Struct) Type() string { return "struct" } +func (s *Struct) Type() string { return "struct" } func (s *Struct) Truth() starlark.Bool { return true } // even when empty func (s *Struct) Hash() (uint32, error) { // Same algorithm as Tuple.hash, but with different primes. |