import "gitlab.com/pennersr/djgo/signing"
// Should be equal to your SECRET_KEY
secretKey := "django.settings.SECRET_KEY"
// DefaultSalt matches Django's default
s := signing.NewSigner(secretKey, signing.DefaultSalt)
// Django's signing serializes to JSON first. As this library does not
// do that automatically, you'll need to make sure you input proper JSON
// yourself. Hence, the quoted string.
msg := []byte("\"Hello\"")
v := s.Dumps(msg, false)
// v now equals "IkhlbGxvIg:1gt9nB:MjzABsr4QbCwUnpTLEVf9ZWxtXg"