func (u Uint8) If(fn func(uint8)) {
	if u.Present() {
		fn(*u.value)
	}
}
If calls the function f with the value if the value is present.
package optional
import (
	"encoding/json"
	"errors"
)
type Uint8 struct {
	value *uint8
}
func NewUint8(v uint8) Uint8 {
	return Uint8{&v}
}
func (u *Uint8) Set(v uint8) {
	u.value = &v
}
func (u Uint8) Get() (uint8, error) {
	if !u.Present() {
		var zero uint8
		return zero, errors.New("value not present")
	}
	return *u.value, nil
}
func (u Uint8) MustGet() uint8 {
	if !u.Present() {
		panic("value not present")
	}
	return *u.value
}
func (u Uint8) Present() bool {
	return u.value != nil
}
func (u Uint8) OrElse(v uint8) uint8 {
	if u.Present() {
		return *u.value
	}
	return v
}