Documentation ¶ Overview ¶ Package slug turns text, such as the name of a mock, into a part of a file name that every system accepts. Index ¶ func Make(s string, limit int) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Make ¶ func Make(s string, limit int) string Make returns s as letters, digits, '.', '_' and '-': each run of anything else becomes one '-'. It is at most limit bytes long, never starts or ends with '-' or '.', and is "" when s holds nothing else. Types ¶ This section is empty. Source Files ¶ View all Source files slug.go Click to show internal directories. Click to hide internal directories.