Documentation ¶ Overview ¶ Package csp computes the Content-Security-Policy hash sources of the inline elements go-partial writes. Index ¶ func Hash(text string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Hash ¶ func Hash(text string) string Hash returns the hash source of an inline <style> or <script> element whose text is text, everything between its start and end tag, exactly as it is written: 'sha256-…', with its quotes, ready for a policy's style-src or script-src directive. Types ¶ This section is empty. Source Files ¶ View all Source files csp.go Click to show internal directories. Click to hide internal directories.