core

package
v0.0.0-...-1022a47 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(src string, srcCode string, tagCode string) string

func GetString

func GetString(str string) string

func IsGBK

func IsGBK(s string) bool

func IsUTF8

func IsUTF8(s string) bool

Types

type BBox

type BBox struct {
	Min, Max Point
}

BBox 代表包围盒

type Point

type Point struct {
	X, Y, Z float64
}

Point 代表三维空间中的一个点

type Scanner

type Scanner struct {
	LastTag Tag
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Next

func (s *Scanner) Next() bool

type Tag

type Tag struct {
	Code  int
	Value string
}

Tag 代表 DXF 中的一组标签对

func (Tag) AsFloat

func (t Tag) AsFloat() float64

AsFloat 将值转换为 float64

func (Tag) AsInt

func (t Tag) AsInt() int

AsInt 将值转换为 int

func (Tag) AsString

func (t Tag) AsString() string

AsString 清洗字符串(去除多余空格)

Jump to

Keyboard shortcuts

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