mazhabEnum

package
v0.0.0-...-61f454b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mazhab

type Mazhab int

Mazhab .

const (
	// Standard .
	Standard Mazhab = iota + 1
	// Hanafi .
	Hanafi
)

func (Mazhab) AsrShadowLength

func (c Mazhab) AsrShadowLength() float64

AsrShadowLength .

func (Mazhab) Code

func (c Mazhab) Code() string

Code .

func (Mazhab) MarshalJSON

func (c Mazhab) MarshalJSON() ([]byte, error)

MarshalJSON presents value to the client

func (Mazhab) Name

func (c Mazhab) Name() string

Name .

func (*Mazhab) Scan

func (c *Mazhab) Scan(val interface{}) error

Scan retrieves value from the DB

func (*Mazhab) UnmarshalJSON

func (c *Mazhab) UnmarshalJSON(val []byte) error

UnmarshalJSON parses value from the client

func (*Mazhab) UnmarshalParam

func (c *Mazhab) UnmarshalParam(src string) error

UnmarshalParam parses value from the client (handled by gorm)

func (Mazhab) Value

func (c Mazhab) Value() (driver.Value, error)

Value encodes value to the DB

type MazhabClass

type MazhabClass struct {
	Code            string  `json:"code"`
	Name            string  `json:"name"`
	AsrShadowLength float64 `json:"asrShadowLength"`
}

MazhabClass .

func AsCompleteConstants

func AsCompleteConstants() []MazhabClass

AsCompleteConstants presents constants as their complete object form

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL