Documentation ¶
Overview ¶
Package examples service examples @title Examples @description Example service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HelloParam ¶
type HelloParam struct { // World // @title Name // @description Name // @validate-message-i18n >>> // zh: 世界是必须的 // en: world is required // <<< World string `json:"world" validate:"required" validate-message:"world_required"` }
HelloParam @title Hello function argument @description Hello function argument
type HelloResults ¶
type HelloResults []string
HelloResults @title Hello Results @description Hello Results
func Hello ¶
func Hello(ctx context.Context, param HelloParam) (result HelloResults, err error)
Click to show internal directories.
Click to hide internal directories.