package
1.0.7
Repository: https://github.com/sswanv/cherry-component.git
Documentation: pkg.go.dev

# README

data-config组件

  • 自定义数据源
  • 读取数据
  • 热更新数据

Install

Prerequisites

  • GO >= 1.17

Using go get

go get github.com/cherry-game/cherry/components/data-config@latest

Quick Start

import cherryDataConfig "github.com/cherry-game/cherry/components/data-config"
package demo
import (
	"github.com/cherry-game/cherry"
	cherryDataConfig "github.com/cherry-game/cherry/components/data-config"
)

// RegisterComponent 注册struct到data-config
func RegisterComponent() {
	dataConfig := cherryDataConfig.NewComponent()
	dataConfig.Register(
		&DropList,
		&DropOne,
	)

	//data-config组件注册到cherry引擎
	cherry.RegisterComponent(dataConfig)
}

example

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author