# V by Example

**NOTE: This is very outdated and it will be updated and worked upon when V 1.0 is released.**

[Brazilian Portuguese](https://v-community.gitbook.io/v-by-example/pt-br) | [Deutsch](https://v-community.gitbook.io/v-by-example/de) | [English](https://github.com/v-community/v_by_example/blob/master/en/README.md) | [Bahasa Indonesia](https://v-community.gitbook.io/v-by-example/id) | [Chinese](https://v-community.gitbook.io/v-by-example/cn) | [Japanese](https://v-community.gitbook.io/v-by-example/jp) | [Italian](https://github.com/v-community/v_by_example/blob/master/it/README.md) | [French](https://github.com/v-community/v_by_example/blob/master/fr/README.md)

> Learn V by Examples

V by Example is a direct introduction to V by using annotated program examples.

* [Examples](#examples)
* [Contributing](#contributing)
* [License](#license)

Discord: <https://discord.gg/vlang>

## Section 1

Introduction to V by presenting a few basic examples and exercises.

* [Hello World](https://v-community.gitbook.io/v-by-example/en/examples/section_1/hello_world)
* [V Keywords](https://v-community.gitbook.io/v-by-example/en/examples/section_1/keywords)
* [Primitives](https://v-community.gitbook.io/v-by-example/en/examples/section_1/primitives)
* [Variables](https://v-community.gitbook.io/v-by-example/en/examples/section_1/variables)
* [Strings](https://v-community.gitbook.io/v-by-example/en/examples/section_1/strings)
* [Comment](https://v-community.gitbook.io/v-by-example/en/examples/section_1/comment)

## Section 2

This section discusses the main operators and conditional statements in V.

* [Operator](https://v-community.gitbook.io/v-by-example/en/examples/section_2/operator)
* [If-else](https://github.com/v-community/v_by_example/blob/master/en/examples/section_2/if-else.md)
* [Match](https://v-community.gitbook.io/v-by-example/en/examples/section_2/match)
* [Loops](https://v-community.gitbook.io/v-by-example/en/examples/section_2/loops)

## Section 3

A study on functions and methods and in the most important data structures in V: arrays and struct.

* [Functions](https://github.com/v-community/v_by_example/blob/master/en/examples/section_3/functions.md)
* [Arrays](https://github.com/v-community/v_by_example/blob/master/en/examples/section_3/arrays.md)
* [Struct](https://github.com/v-community/v_by_example/blob/master/en/examples/section_3/struct.md)
* [Methods](https://github.com/v-community/v_by_example/blob/master/en/examples/section_3/methods.md)

## Section 4

In this section, we dive deeper and study the features inside the Array object. Other examples like JSON, Writing/reading files and Testing are covered.

* [Array Functions](https://v-community.gitbook.io/v-by-example/en/examples/section_4/array-functions)
* [Testing](https://v-community.gitbook.io/v-by-example/en/examples/section_4/testing)
* [Files](https://v-community.gitbook.io/v-by-example/en/examples/section_4/files)
* [JSON](https://v-community.gitbook.io/v-by-example/en/examples/section_4/json)

## Team

Current list of maintainers/authors:

* [Don Alfons Nisnoni](https://github.com/dhonx)
* [Ivo-Balbaert](https://github.com/ibalbaert)
* [Sven Patrick Meier](https://github.com/SuicideS3ason)
* [Swastik Baranwal](https://github.com/Delta456)
* [Vitor Oliveira](https://github.com/vbrazo)

## Contributing

See our [CONTRIBUTING.md](https://v-community.gitbook.io/v-by-example/contributing) and start contributing today. We usually elect new maintainers based on contributions.

## License

[MIT](https://github.com/v-community/v_by_example/blob/master/LICENSE/README.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v-community.gitbook.io/v-by-example/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
