gbt4761

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package gbt4761 GB/T 4761-2008 家庭关系代码

代码有以下几种长度的格式:

  • 1 表示基本的关系,值为 1-8;
  • 2 表示所有的默认家庭关系;
  • 3 表示组合关系,拆为两段,长度分别为 2 和 1,根据长度分别根据 1 和 2 规则查找;
  • 4 表示给合关系,拆为两段,长度分别为 2 和 2,根据 2 规则查找;

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(basic bool) iter.Seq2[string, string]

All 遍历所有代码

basic 只遍历基本的关系;

func Get

func Get(code string) string

Get 获取指定代码表示的家庭关系

code 的长度为 1,2,3,4 的都可以。具体可参考文档。

func IsValid

func IsValid(code string) (ok bool)

IsValid 验证数据的正确性

code 的长度为 1,2,3,4 的都可以。具体可参考文档。

Types

This section is empty.

Jump to

Keyboard shortcuts

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