This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "base", | |
| "properties": { | |
| "prop1": { | |
| "type": "number" | |
| }, | |
| "prop2": { | |
| "type": "number" | |
| }, | |
| "prop_obj": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package stack | |
| // Stack is a LIFO collection. | |
| // | |
| // Concurrency: not safe for concurrent use. | |
| type Stack[T any] struct { | |
| elements []T | |
| } | |
| func (s *Stack[T]) Push(element T) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package queue | |
| // Queue is a FIFO collection. | |
| // | |
| // Concurrency: not safe for concurrent use. | |
| type Queue[T any] struct { | |
| elements []T | |
| head int | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| nginx: | |
| image: openresty/openresty:alpine | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - ./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro |
OlderNewer