File: common_test.go

package info (click to toggle)
golang-github-nicksnyder-go-i18n.v2 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: xml: 198; sh: 5; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
package main

import "io/ioutil"

func mustTempDir(prefix string) string {
	outdir, err := ioutil.TempDir("", prefix)
	if err != nil {
		panic(err)
	}
	return outdir
}