mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 22:18:39 +00:00
- Load license from ES256 signed JWT key. - Parse license claims into LicenseInfo struct. - Update contribution documentation with sample license key. Closes #816.
28 lines
503 B
Go
28 lines
503 B
Go
// Package ptr includes functions for creating pointers from values.
|
|
package ptr
|
|
|
|
import "time"
|
|
|
|
// String returns a pointer to the provided string.
|
|
func String(x string) *string {
|
|
return &x
|
|
}
|
|
|
|
// Int returns a pointer to the provided int.
|
|
func Int(x int) *int {
|
|
return &x
|
|
}
|
|
|
|
// Uint returns a pointer to the provided uint.
|
|
func Uint(x uint) *uint {
|
|
return &x
|
|
}
|
|
|
|
// Bool returns a pointer to the provided bool.
|
|
func Bool(x bool) *bool {
|
|
return &x
|
|
}
|
|
|
|
func Time(x time.Time) *time.Time {
|
|
return &x
|
|
}
|