From e3550dd65c64587cb533914708343a0be4c01139 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 24 May 2017 15:24:47 +0300 Subject: [PATCH] Add Script.Hash --- script.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script.go b/script.go index 133117b..74135f5 100644 --- a/script.go +++ b/script.go @@ -31,6 +31,10 @@ func NewScript(src string) *Script { } } +func (s *Script) Hash() string { + return s.hash +} + func (s *Script) Load(c scripter) *StringCmd { return c.ScriptLoad(s.src) }