mirror

Mirror free and open-source projects you like with minimal effort
git clone git://git.server.ky/slackcoder/mirror
Log | Files | Refs | README

toml.go (187B)


      1 package internal
      2 
      3 import (
      4 	"github.com/BurntSushi/toml"
      5 )
      6 
      7 func MustTOML(arg interface{}) string {
      8 	buf, err := toml.Marshal(arg)
      9 	if err != nil {
     10 		panic(err)
     11 	}
     12 
     13 	return string(buf)
     14 }