1 Star 0 Fork 0

coodder / unipdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
utils.go 687 Bytes
一键复制 编辑 原始数据 按行查看 历史
jhonm 提交于 2023-08-07 15:31 . init
package ps
// MakeReal returns a new PSReal object initialized with `val`.
func MakeReal(val float64) *PSReal {
obj := PSReal{}
obj.Val = val
return &obj
}
// MakeInteger returns a new PSInteger object initialized with `val`.
func MakeInteger(val int) *PSInteger {
obj := PSInteger{}
obj.Val = val
return &obj
}
// MakeBool returns a new PSBoolean object initialized with `val`.
func MakeBool(val bool) *PSBoolean {
obj := PSBoolean{}
obj.Val = val
return &obj
}
// MakeOperand returns a new PSOperand object based on string `val`.
func MakeOperand(val string) *PSOperand {
obj := PSOperand(val)
return &obj
}
func abs(x int) int {
if x < 0 {
return -x
}
return x
}
Go
1
https://gitee.com/coodder/unipdf.git
git@gitee.com:coodder/unipdf.git
coodder
unipdf
unipdf
v1.2.0

搜索帮助

53164aa7 5694891 3bd8fe86 5694891